Updated version/duplicate of OIDC Provider User ID is undefined, which I can’t close or edit for some reason.
I’m trying to setup OIDC-Conformant logins with an external Auth0 tenant according to these directions. I can login, but the authenticated User’s user_id
is always undefined. In my Auth0 account, the user’s ID shows up as auth0|external-tenant-connection|undefined
. How do I ensure that the user_id
from the OIDC Provider Tenant is present?
This is the connection I setup in the Relying Party:
[
{
"id": "con_<REDACTED>",
"options": {
"client_id": "<REDACTED>",
"client_secret": "<REDACTED>",
"domain": "external-tenant.auth0.com",
"scope": "openid profile email sub"
},
"strategy": "auth0-oidc",
"name": "external-tenant-connection",
"is_domain_connection": false,
"enabled_clients": [
"<REDACTED>",
"<REDACTED>",
"<REDACTED>"
],
"realms": [
"external-tenant-connection"
]
}
]
And this is the direct link I use to authenticate:
https://relying-party.auth0.com/authorize/?client_id=REDACTED&response_type=token id_token&scope=open_id profile&redirect_uri=http://localhost:9091/login&connection=external-tenant-connection&nonce=NONCE