From b918c1a2aa890f4402fe1ee10b1a82e818a080a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Sat, 13 Jan 2024 08:28:44 +0100 Subject: [PATCH] Update the Twitter integration to map "name" to ClaimTypes.Name --- .../OpenIddictClientWebIntegrationHandlers.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs index c67c24ec..28f6bfb7 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs +++ b/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"]}", // These providers return the username as a custom "name" node: - ProviderTypes.Deezer or ProviderTypes.Facebook or ProviderTypes.GitHub 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.Twitter or + ProviderTypes.Vimeo => (string?) context.UserinfoResponse?["name"], // FitBit returns the username as a custom "displayName" node: