Okta Redirect Url Not working when HashLocationStrategy is enabled in Angular

721 Views Asked by At

I am trying to add Okta SSO in my application. But because of HashLocationStrategy okta not able to parse token.

Is there any way to turn off HashLocationStrategy for specific route?

1

There are 1 best solutions below

3
On

Have you tried to add a hash delimiter # to your redirect url, i solved the problem for me

moved from

redirect_uri: `${configdata.clientRoot}/${lang}/#/auth-callback`,

to

redirect_uri: `${configdata.clientRoot}/${lang}/#/auth-callback#`,