-1

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?

Tushar
  • 1,948
  • 1
  • 13
  • 32

1 Answers1

0

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#`,
Fateh Mohamed
  • 20,445
  • 5
  • 43
  • 52
  • Thank you for response. But after adding # it saying bad request. I have added like this: "redirectUri": "http://localhost:4200/#/implicit/callback#" – Tushar Nov 25 '19 at 11:39
  • have you made this update on both server and client sides? – Fateh Mohamed Nov 25 '19 at 11:41
  • I tried to update url with # in okta, but its giving error as `The redirect URIs must be absolute URIs.` – Tushar Nov 25 '19 at 11:43