I'm stepping into a well established environment to help manage the upgrade of a backend application that has, until now, been fielding all the step up requests directly. Currently, the authenticated user attempts to submit a request to a protected action, protected by an Access Control Policy. The policy checks a handful of items to determine if the user needs to do step-up, and if so, runs an InfoMap to generate the OTP details, submit the success of the InfoMap as false, and sends that JSON error detail to the application to handle facilitating the OTP process in-app, running against ISAM authsvc policies, until it gets to a point where the Access Control policy will allow the request through.
In the new version of the application, the backend application can no longer field those responses. Instead of submitting the JSON details back to the application, I need to redirect the user to a different auth application we're building to handle all the login/stepup. I have two questions.
1. I replaced the Permit with Authentication (OTP) with a Permit with Authentication (HTTP Redirect) to get the user out to that external (external to the backend app, but still through WebSEAL) auth application to let that app facilitate the OTP process, but the response to the browser is still a JSON response. It appears the response is what would be valid (I see my configured redirect url, state, etc), but it's not sending an HTTP 302.
- I'm reasonably confident there is not an http transformation rule modifying the accept/repsonse types to application/json on the protected endpoint.
2. Is this even the best way to begin this new flow? I'm trying to leverage as much existing infrastructure and policy development as I can and it seems to make sense to me to replace the in-app functionality with letting the login/auth application handle it, but I'm not sure if there's a better way to interrupt that request and get the user to the new application to perform the action.
Thanks!
------------------------------
Brian Thompson
------------------------------