OATH_ERROR: Illegal value for redirect_uri parameter Skip to main content
https://support.okta.com/help/answers?id=906f0000000dfe9iao&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Andrew LobbanAndrew Lobban 

OATH_ERROR: Illegal value for redirect_uri parameter

I have an Angular App that I am trying to setup with Okta Preview. I think I have everything configured, but I get the OATH Error and not sure how to resolve it.

It seems it doesn't like redirectUri: 'http://localhost:8000/#/dash'. This happens when I sign in with my Okta credentials.
Raphael LondnerRaphael Londner (Okta, Inc.)
Hello Andrew,

Where did you set this redirectUri value? In the Okta Sign-In Widget?

If so, did you make sure you configured the exact same redirect uri in your Okta app? This would be necessary for Okta to accept your redirectUri as configured in your client app.
Andrew LobbanAndrew Lobban
Resolved the situation already! I had to explicitly set the total path in the Callback URL. *Andrew Lobban* *FED, Web Application Developer* alobban@afnww.com AFN • 7230 N. Caldwell Ave. Niles, IL 60714 224-515-7278 • www.LoadAFN.com
Elvin DauzElvin Dauz
Hi Andrew. What did you configure to fix this? I tried Security>API>Redirect and put http://localhost:4200 but I'm still having an error.