No IdP Access Token in Identities Array for OIDC Enterprise Connections

Overview
Identity provider Access Token in the user identities array for OIDC Enterprise Connections are not displayed.  No Access Token when the user object from API is retrieved. The IdP Access Token is not present in the identities array.

user.identities[0].access_token is empty
Applies To
  • OIDC Enterprise Connection
  • IdP Access Token
Cause
Auth0 custom OIDC enterprise connection does not actually support IdP access tokens yet, however there are plans to support it on the roadmap.
Solution

As an alternative, a custom social connection can be used. See Connect Apps to Generic OAuth2 Authorization Servers

The custom social connection can be configured almost exactly like a custom OIDC enterprise connection since both use the same OIDC protocol.

The only extra work that would be needed is setting up the "Fetch User Profile" script, which populates/syncs the Auth0 user profile when the user logs in.

Recommended content

No recommended content found...