fix(auth): Allow PKCE for legacy AccessCode OAuth2 Grant Type (#6011)
fixes #6010 Co-authored-by: Andrew Korshunov <andrew.korshunov@vizsc.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user