From c097e8893beb95f4837d6974a8da099b30c7e43b Mon Sep 17 00:00:00 2001 From: Tom Opdebeeck Date: Fri, 13 Aug 2021 11:35:30 +0200 Subject: [PATCH] fix: revert changes in github provider Signed-off-by: Tom Opdebeeck --- plugins/auth-backend/src/providers/github/provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/auth-backend/src/providers/github/provider.ts b/plugins/auth-backend/src/providers/github/provider.ts index a550cd1fdc..62f2534601 100644 --- a/plugins/auth-backend/src/providers/github/provider.ts +++ b/plugins/auth-backend/src/providers/github/provider.ts @@ -79,7 +79,7 @@ export class GithubAuthProvider implements OAuthHandlers { const profile = makeProfileInfo( { ...fullProfile, - id: fullProfile.id, + id: fullProfile.username || fullProfile.id, displayName: fullProfile.displayName || fullProfile.username || fullProfile.id, }, @@ -95,7 +95,7 @@ export class GithubAuthProvider implements OAuthHandlers { expiresInSeconds: params.expires_in, }, backstageIdentity: { - id: fullProfile.id, + id: fullProfile.username || fullProfile.id, }, }, };