Ver a proveniência

fix(auth): Allow PKCE for legacy AccessCode OAuth2 Grant Type (#6011)

fixes #6010

Co-authored-by: Andrew Korshunov <andrew.korshunov@vizsc.com>
bubble
Andrew Korshunov há 3 anos
committed by GitHub
ascendente
cometimento
5a87c8a932
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      src/core/oauth2-authorize.js

+ 1
- 1
src/core/oauth2-authorize.js Ver ficheiro

@@ -74,7 +74,7 @@ export default function authorize ( { auth, authActions, errActions, configs, au
query.push("realm=" + encodeURIComponent(authConfigs.realm))
}

if (flow === "authorizationCode" && authConfigs.usePkceWithAuthorizationCodeGrant) {
if ((flow === "authorizationCode" || flow === "accessCode") && authConfigs.usePkceWithAuthorizationCodeGrant) {
const codeVerifier = generateCodeVerifier()
const codeChallenge = createCodeChallenge(codeVerifier)



Carregando…
Cancelar
Guardar