Hi,
I’m currently searching how to redirect my users to a custom page after they sign in, I could use the global redirect option but there is some issues using this :
-
You can’t forward the app context to the custom page as a parameter (from the Okta Widget page it would look like :
window.location.replace([App_URL]+ "?app=OktaUtil.getRequestContext().target.name"
-
If you sign in using the app URL and not trying to access dashboard, you will not use the Global Redirect option
Modifying the Okta Sign in Widget, there is not way to change the redirection within in (or I didn’t not found how to achieve this).
Wanted scenario seems pretty simple and I found weird that Okta does not allow to do something like that :
- User sign in (to dashboard or app)
- User has never looked at Global terms & conditions or something like that (using an attribute)
- User gets redirected to an external webpage (this could happen before step 2. if not feasible in Okta)
- User accept whatever shows up
- User get redirected back to what we wanted to access