fix: error for non oidc oauth clients
This commit is contained in:
@@ -70,7 +70,7 @@ export abstract class GenericOidcProvider implements OAuthProvider<OidcToken> {
|
|||||||
new URLSearchParams({
|
new URLSearchParams({
|
||||||
client_id: this.config.get(`oauth.${this.name}-clientId`),
|
client_id: this.config.get(`oauth.${this.name}-clientId`),
|
||||||
response_type: "code",
|
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(),
|
redirect_uri: this.getRedirectUri(),
|
||||||
state,
|
state,
|
||||||
nonce,
|
nonce,
|
||||||
|
|||||||
Reference in New Issue
Block a user