
BasileN.74746 (Customer) asked a question.
I struggle with the redirection after the okta autentication.
I have used the tutorial for Okta with Angular. With the localHost test, everything works, but on deployment with IIS, something is wrong.
I think it's because I am not putting the app directly on the root of the server, and I don't manage correctly the url redirection.
My app is on https://mydomain/myApp/index.html
My okta configuration for Login redirect uri : https://mydomain/myApp/implicit/callback
First case, I redirect the url to .*/index.html. Here, after the login, I am redirected directly on https://mydomain/homepage and I have the 404 error. But when I go back to https://mydomain/myApp/index.html I am correctly connected and every routes protected by okta work.
Second case I redirect the url to .*/myApp/index.html. And here after the login I am stuck on https://mydomain/myApp/implicit/callback?code=....&state=.... with the 404 error, and the connection has failed when I return to https://mydomain/myApp/index.html.
At first I thought it was just a problem from my app, but once I am logged, my app works totally fine even with the protected route with okta.
Could someone help me please ?
Thank you and have a good day.

Thank you for contacting Okta's support. My name is Catalin, and I will be handling your case.
Please see the following documentation that applies to your issue:
https://support.okta.com/help/s/article/FAQ-How-Blocking-Third-Party-Cookies-Can-Potentially-Impact-Your-Okta-Environment?language=en_US
Thank You,
Catalin Patache
Technical Support Engineer
Okta Global Customer Care