feat (auth): support for flow type authorization_code in oauth2-redirect.html (#6750)

This commit is contained in:
Ihnat Klimchuk
2021-01-13 07:02:04 +03:00
committed by GitHub
parent 59b42bb38f
commit 2f8bfd03f8
3 changed files with 26 additions and 4 deletions

View File

@@ -28,8 +28,9 @@
isValid = qp.state === sentState
if ((
oauth2.auth.schema.get("flow") === "accessCode"||
oauth2.auth.schema.get("flow") === "authorizationCode"
oauth2.auth.schema.get("flow") === "accessCode" ||
oauth2.auth.schema.get("flow") === "authorizationCode" ||
oauth2.auth.schema.get("flow") === "authorization_code"
) && !oauth2.auth.code) {
if (!isValid) {
oauth2.errCb({