Closed johakoch closed 1 year ago
According to https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata, the userinfo_endpoint is RECOMMENDED, but not REQUIRED.
userinfo_endpoint
So, if the openid-configuration, for whatever reason, does not include a userinfo_endpoint, no userinfo should be requested. Accordingly,
sub
userinfo
request.context.<oidc_name>
Are issues that are on a milestone not automatically closed if the linked PR is merged?
Works, comfirmed with an Azure B2C application without an userinfo_endpoint within the configuration.
According to https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata, the
userinfo_endpoint
is RECOMMENDED, but not REQUIRED.So, if the openid-configuration, for whatever reason, does not include a
userinfo_endpoint
, no userinfo should be requested. Accordingly,sub
claim from the id token cannot be verified against thesub
property from the userinfo response,userinfo
is stored inrequest.context.<oidc_name>
.