瀏覽代碼

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
沒有發現已知的金鑰在資料庫的簽署中 GPG Key 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)



Loading…
取消
儲存