I am following the article Article to implement OKTA authentication in a React app.
Upon login, I am receiving the below error even though I am providing the correct credentials.
Any suggestions would be helpful.
I am following the article Article to implement OKTA authentication in a React app.
Upon login, I am receiving the below error even though I am providing the correct credentials.
Any suggestions would be helpful.
This looks like a straight-forward credentials error or a sign-on policy error. Can you check if the user you are trying to use to login to the React application has a profile available in the OKTA dashboard? and also if the passwords and usernames are correct.
The /authn endpoint you are hitting returns an 401 in three scenarios (A 401 Unauthorized Status Code).
So you may need to validate if the three reasons are checked out and check the Okta System Logs to see what the real reason is.
You can read more about the responses here
In addition to what @krishna mentioned, double check that this is a local Okta user and that their credentials aren’t sourced (and only available) within an external Identity Provider.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.