OAS3 Auth MVP

This commit is contained in:
Kyle Shockey
2017-10-11 16:58:24 -07:00
parent fa24b6aec8
commit 8b81bcac48
8 changed files with 186 additions and 23 deletions

View File

@@ -27,7 +27,10 @@
isValid = qp.state === sentState
if (oauth2.auth.schema.get("flow") === "accessCode" && !oauth2.auth.code) {
if ((
oauth2.auth.schema.get("flow") === "accessCode"||
oauth2.auth.schema.get("flow") === "authorizationCode"
) && !oauth2.auth.code) {
if (!isValid) {
oauth2.errCb({
authId: oauth2.auth.name,