OIDC authorization request FAILURE: illegal_redirect_uri_enhanced

If I’m logged into my development account, then my https://${yourOktaDomain}/oauth2/v1/authorize?.. works fine.
However if I’m not logged in I see the OKTA login screen for a split second and then I get what is shown in the attached image.

In the system logs I see the following error message:
OIDC authorization request FAILURE: illegal_redirect_uri_enhanced
I’ve also attached a screenshot of the error log.

This posting Okta Help Center (Lightning) did help, but not enough for me to get this working


So I stuck at this step

Which is before I do any programming.

Can you help me get this resolved?

Hi, you need to ensure that the redirect_uri exactly matches as the one you have set in the application settings. Any mismatch even with the trailing slashes, https vs http can throw this error.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.