FAILURE: Unable to retrieve an access token for the Azure AD identity provider

I am trying to make Azure as an OIDC IDO for Okta, I followed the instructions here: Enterprise Identity Provider | Okta Developer
In the end, the error that I am getting is: FAILURE: Unable to retrieve an access token for the identity provider.
I checked 3 times the links inside Okta, to match the ones from Azure, and the redirect URI from Azure to match the one coming from Okta.
This is the expanded logs, but I didn’t see much that can help. @andrea

We tried solution that provided by you for this issue based on earlier chat. But we are still facing the same issue even though we have given the correct Metadata (tried both V1/v2 azure endpoints). We are using public key/private key instead of client secret.

If you have a paid account, I definitely recommend opening a support case so that someone can investigate our backend logs for more details.

A lot of the time, this error corresponds to Okta receiving an error response back when trying to exchange the authorization code for tokens, so definitely double check the client credentials that have been configured for this IdP in Okta and, if possible, see if you can confirm the error being reported on the Azure side.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.