Browse Source

Update the GitHub integration to map "name" to ClaimTypes.Name

pull/1859/head
Kévin Chalet 3 years ago
parent
commit
c101a250af
  1. 4
      src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs

4
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs

@ -1026,8 +1026,8 @@ public static partial class OpenIddictClientWebIntegrationHandlers
=> $"{(string?) context.UserinfoResponse?["first_name"]} {(string?) context.UserinfoResponse?["last_name"]}",
// These providers return the username as a custom "name" node:
ProviderTypes.Deezer or ProviderTypes.Facebook or ProviderTypes.Reddit or
ProviderTypes.SubscribeStar or ProviderTypes.Vimeo
ProviderTypes.Deezer or ProviderTypes.Facebook or ProviderTypes.GitHub or
ProviderTypes.Reddit or ProviderTypes.SubscribeStar or ProviderTypes.Vimeo
=> (string?) context.UserinfoResponse?["name"],
// FitBit returns the username as a custom "displayName" node:

Loading…
Cancel
Save