From 95ec3ea8758dd5a9743e1a9bdf89c9ed312989a2 Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Fri, 9 Oct 2020 21:45:49 -0700 Subject: [PATCH] Remove scope validation #647 --- lib/grant-types/authorization-code-grant-type.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/grant-types/authorization-code-grant-type.ts b/lib/grant-types/authorization-code-grant-type.ts index 604f17956..e89badcff 100755 --- a/lib/grant-types/authorization-code-grant-type.ts +++ b/lib/grant-types/authorization-code-grant-type.ts @@ -211,7 +211,6 @@ export class AuthorizationCodeGrantType extends AbstractGrantType { authorizationCode: string, scope: string, ) { - const accessScope = await this.validateScope(user, client, scope); const accessToken = await this.generateAccessToken(client, user, scope); const refreshToken = await this.generateRefreshToken(client, user, scope); const accessTokenExpiresAt = this.getAccessTokenExpiresAt(); @@ -223,7 +222,7 @@ export class AuthorizationCodeGrantType extends AbstractGrantType { accessTokenExpiresAt, refreshToken, refreshTokenExpiresAt, - scope: accessScope, + scope, } as any; return this.model.saveToken(token, client, user);