Skip to content

Commit

Permalink
Limiting requested default scope to "openid" in OIDC flow. (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslonov authored Dec 9, 2020
1 parent d922261 commit 71b9dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/oauthService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export class OAuthService {
const server = new AuthorizationServer();
server.authorizationEndpoint = metadata.authorization_endpoint;
server.tokenEndpoint = metadata.token_endpoint;
server.scopes = metadata.scopes_supported || ["openid"];
server.scopes = ["openid"];

// Leaving only "implicit" grant flow until backend gets deployed.
const supportedGrantTypes = [GrantTypes.implicit.toString(), GrantTypes.authorizationCode.toString()];
Expand Down

0 comments on commit 71b9dab

Please sign in to comment.