Hi All,
I am getting intermittent 500 Http response once i try to get the access token after passing the authcode in my java application.
Just for understanding purpose below is the exact flow.
-
First we enter the username & password in the okta page. After that one more validation of phone number/OTP. on successful validation we receive a “AuthCode” and gets redirected to the URL which is whitelisted.
-
Based on this “Authcode”, We hit the " https://{orgname}.okta.com/oauth2/default/v1/token " api to get an access token.
-
On receiving the access token, we hit the " https://{orgname}.okta.com/oauth2/default/v1/userinfo " api to get final user data from okta.
The second steps failed intermittently. I have checked all the parameters for success and fail use case, there is no difference.
Please help. Thanks in advance.