0
Fork 0
mirror of https://github.com/stonith404/pingvin-share.git synced 2025-02-12 01:48:10 -05:00

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
No known key found for this signature in database
GPG key ID: 07E623B294202B6C

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,