fix: error for non oidc oauth clients

This commit is contained in:
Elias Schneider
2024-11-26 15:53:01 +01:00
parent 3527dd1dd9
commit ba2e7e122c

View File

@@ -70,7 +70,7 @@ export abstract class GenericOidcProvider implements OAuthProvider<OidcToken> {
new URLSearchParams({
client_id: this.config.get(`oauth.${this.name}-clientId`),
response_type: "code",
scope: this.config.get(`oauth.${this.name}-scope`),
scope: this.name == "oidc" ? this.config.get(`oauth.oidc-scope`) : "openid email profile",
redirect_uri: this.getRedirectUri(),
state,
nonce,