소스 검색

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 3 년 전
committed by GitHub
부모
커밋
5a87c8a932
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/core/oauth2-authorize.js

+ 1
- 1
src/core/oauth2-authorize.js 파일 보기

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



불러오는 중...
취소
저장