Explorar el Código

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 hace 3 años
committed by GitHub
padre
commit
5a87c8a932
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/core/oauth2-authorize.js

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

@@ -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)



Cargando…
Cancelar
Guardar