fixed a couple bugs found in the workflow examples

This commit is contained in:
tigerbot 2017-03-07 14:55:27 -07:00
父節點 29967cde19
當前提交 db9d8ff313
共有 2 個檔案被更改,包括 3 行新增2 行删除

查看文件

@ -708,6 +708,7 @@
return OAUTH3.PromiseA.reject(OAUTH3.error.parse(directives.issuer /*providerUri*/, params)); return OAUTH3.PromiseA.reject(OAUTH3.error.parse(directives.issuer /*providerUri*/, params));
} }
OAUTH3.hooks.session._cache = {};
return params; return params;
}); });
} }

查看文件

@ -177,12 +177,12 @@
}; };
OAUTH3.authz.scopes = function () { OAUTH3.authz.scopes = function () {
return { return OAUTH3.PromiseA.resolve({
pending: ['oauth3_authn'] // not yet accepted pending: ['oauth3_authn'] // not yet accepted
, granted: [] // all granted, ever , granted: [] // all granted, ever
, requested: ['oauth3_authn'] // all requested, now , requested: ['oauth3_authn'] // all requested, now
, accepted: [] // granted (ever) and requested (now) , accepted: [] // granted (ever) and requested (now)
}; });
}; };
OAUTH3.authz.grants = function (providerUri, opts) { OAUTH3.authz.grants = function (providerUri, opts) {
if ('POST' === opts.method) { if ('POST' === opts.method) {