From c101a250afdf19f5be5ac80e8b1ae138a9142aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Wed, 9 Aug 2023 16:06:05 +0200 Subject: [PATCH] Update the GitHub integration to map "name" to ClaimTypes.Name --- .../OpenIddictClientWebIntegrationHandlers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs index 0b5396bd..cdea30f4 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs +++ b/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: