<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00009Y1kaFSAROkta Classic EngineSingle Sign-OnAnswered2020-10-07T15:10:04.000Z2020-09-30T14:28:00.000Z2020-10-07T15:10:04.000Z

BasileN.74746 (Customer) asked a question.

Error 404 after successful authentication (Angular - IIS)

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.


This question is closed.
Loading
Error 404 after successful authentication (Angular - IIS)
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply