Pārlūkot izejas kodu

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 pirms 3 gadiem
committed by GitHub
vecāks
revīzija
5a87c8a932
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/core/oauth2-authorize.js

+ 1
- 1
src/core/oauth2-authorize.js Parādīt failu

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



Notiek ielāde…
Atcelt
Saglabāt