Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit ba2e7e1

Browse files
committed
fix: error for non oidc oauth clients
1 parent 3527dd1 commit ba2e7e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/oauth/provider/genericOidc.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export abstract class GenericOidcProvider implements OAuthProvider<OidcToken> {
7070
new URLSearchParams({
7171
client_id: this.config.get(`oauth.${this.name}-clientId`),
7272
response_type: "code",
73-
scope: this.config.get(`oauth.${this.name}-scope`),
73+
scope: this.name == "oidc" ? this.config.get(`oauth.oidc-scope`) : "openid email profile",
7474
redirect_uri: this.getRedirectUri(),
7575
state,
7676
nonce,

0 commit comments

Comments
 (0)