now it enters into okta console and shows all the applications that user have proper access to
I clicked on my application → it takes me to my application properly.
I just clicked X to close the tab.
Then again I clicked on application, its not returning access token and id token. It throws 400 error when i call /token endpoint.
Then I clicked on X to close the tab.
8 I did the same step 6 & 7, it worked good…
Again step 6 & 7, it throws me 400 error.
Summary, it works good alternatively. I am not sure what is happening.
When I check log in okta server, there is no scope defined when it throws 400 error. It passes scopes correctly alternatively. Is this something to do with this issue?
Yes, I am seeing the below message.
java.io.IOException: Server returned HTTP response code: 400 for URL: https://XXX.oktapreview.com/oauth2/<auth_id>/v1/token
Found the issue. Looks like okta code is becoming invalid when tab is closed and when i try to use the old okta code it threw me 400 error. Changed my code flow to get new okta code whenever the application is triggered from okta dashboard. That solved the problem.