<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00009rDjLcCAKOkta Classic EngineAuthenticationAnswered2025-09-13T09:01:51.000Z2023-11-21T15:30:57.000Z2023-11-21T23:02:53.000Z

4qgbg (4qgbg) asked a question.

"Invalid Credentials" after redirection from successful login

 

Image is not available
the okta login flow works well, when the application is running in local and Dev. But when i deployed the service it to kubernetes, the application redirects to okta and asks for username/password and mfa. and then redirects to /login?error with message "Invalid credentials". please help me with this.

stack: Spring boot 3, spring-security and using okta org domain https://{mycompany}.okta.com


  • a0n5s (a0n5s)

    so the next step is redirect to your servet end get the code from url, then call okta /token api to get access token with code/clientid/client secret. check whether you backend done it.

  • 4qgbg (4qgbg)

    This is happening only for one of our and rest all are working fine, in local and dev.

    the issue is with only one app in Qa. Not sure how to debug this.

  • a0n5s (a0n5s)

    do you create app as code grant authentication? normal use org oidc server, you can find the meta data by access : https://spglobal.oktapreview.com/.well-known/openid-configuration. use /authorize and /token /userinfo endpoint url in this metadata.

  • 4qgbg (4qgbg)

    I mean why is it happening only in one environment and that too for only one particular app (which is working in other environments).

This question is closed.
Loading
"Invalid Credentials" after redirection from successful login