From 11a90d6a79e82ea2028eabc6f1ffc4d081fe1b72 Mon Sep 17 00:00:00 2001 From: blam Date: Wed, 1 Dec 2021 16:29:14 +0100 Subject: [PATCH] chore: revert some of the handling Signed-off-by: blam --- plugins/auth-backend/src/lib/oauth/OAuthAdapter.ts | 2 -- plugins/auth-backend/src/providers/google/provider.ts | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/auth-backend/src/lib/oauth/OAuthAdapter.ts b/plugins/auth-backend/src/lib/oauth/OAuthAdapter.ts index 970fe95b55..b6c6473031 100644 --- a/plugins/auth-backend/src/lib/oauth/OAuthAdapter.ts +++ b/plugins/auth-backend/src/lib/oauth/OAuthAdapter.ts @@ -246,8 +246,6 @@ export class OAuthAdapter implements AuthProviderRouteHandlers { claims: { sub: identity.id }, }); - console.log(token); - return decorateWithIdentity({ ...identity, token }); } diff --git a/plugins/auth-backend/src/providers/google/provider.ts b/plugins/auth-backend/src/providers/google/provider.ts index 293f738dfd..d85fc2de2d 100644 --- a/plugins/auth-backend/src/providers/google/provider.ts +++ b/plugins/auth-backend/src/providers/google/provider.ts @@ -159,7 +159,7 @@ export class GoogleAuthProvider implements OAuthHandlers { }; if (this.signInResolver) { - const signInResolverResult = await this.signInResolver( + response.backstageIdentity = await this.signInResolver( { result, profile, @@ -170,8 +170,6 @@ export class GoogleAuthProvider implements OAuthHandlers { logger: this.logger, }, ); - - console.log(signInResolverResult); } return response;