Browse Source

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

pull/1953/head
Kévin Chalet 2 years ago
parent
commit
b918c1a2aa
  1. 5
      src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs

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

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

Loading…
Cancel
Save