I have a springboot (Rest API) application which uses okta authentication service for my rest api. All the configurations are done in application.properties file like client id, client secret, redirect url, issuer etc and when I run the application and try to access the rest api, it prompts the okta login form and upon providing the credentials ( same which I use to access developer.okta.com) it says “Bad Credentials” could anyone please help me to understand what is going wrong here.
I’d suggest logging into your Okta tenant and making sure your app is assigned to Everyone, or at the very least, the user you’re trying to log in with.
I found the issue. It is a bit weird that application.properties file was not getting recognized. Just created a fresh project and configured everything and it works fine now.