Identity provider: Unknown, Error code: access_denied

Hello everyone,

I’m learning about how to implement OKTA authentication in my Flask app, so, I read the official documentation to do it:

After reading and testing it an error shows up: Identity provider: Unknown, Error code: access_denied

First of all, I created an OKTA app, then declare log-in and log-out urls and redirection URI. Everithing is correct apparently. I also add my user and the ‘Everyone’ group to the OKTA app created before.

So, when I’m loggin-in using the demo app (from OKTA github project on the top) I receive the error mencioned. I use my user to log in, my password and my multifactor credentials. This is the situation after all:

Hi,

Can you check if Access Policies are configured for the Authorization Server that you are using?

You can check it by navigating to Security > API > Authorization Server. Then click on the applicable Authorization Server and select the Access Policy Tab.

Hi!
It works, but, I encountered another problem related with Flask sessions. However, this is the solution for the error 400 caused by policy settings.

Thank you!