fixed a couple bugs found in the workflow examples

This commit is contained in:
tigerbot 2017-03-07 14:55:27 -07:00
parent 29967cde19
commit db9d8ff313
2 changed files with 3 additions and 2 deletions

View File

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

View File

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