This commit is contained in:
AJ ONeal 2017-02-14 15:06:38 -07:00
parent 735f3e0cc6
commit f1fd4d82a2
1 changed files with 2 additions and 3 deletions

View File

@ -243,8 +243,8 @@
} }
if (!opts.redirect_uri) { if (!opts.redirect_uri) {
// TODO consider making this optional // TODO consider making this optional
console.warn("auto-generating redirect_uri from hard-coded callback.html" //console.warn("auto-generating redirect_uri from hard-coded callback.html"
+ " (should be configurable... but then redirect_uri could just be manually-generated)"); // + " (should be configurable... but then redirect_uri could just be manually-generated)");
opts.redirect_uri = OAUTH3.utils.url.resolve( opts.redirect_uri = OAUTH3.utils.url.resolve(
OAUTH3.utils.url.normalize(params.client_uri) OAUTH3.utils.url.normalize(params.client_uri)
, '.well-known/oauth3/callback.html' , '.well-known/oauth3/callback.html'
@ -435,7 +435,6 @@
} }
providerUri = OAUTH3.utils.uri.normalize(providerUri); providerUri = OAUTH3.utils.uri.normalize(providerUri);
console.warn('[Warn] Please implement OAUTH3.hooks.session.set = function (providerUri, newSession) { return PromiseA<newSession>; }'); console.warn('[Warn] Please implement OAUTH3.hooks.session.set = function (providerUri, newSession) { return PromiseA<newSession>; }');
console.warn(newSession);
if (!OAUTH3.hooks.session._sessions) { OAUTH3.hooks.session._sessions = {}; } if (!OAUTH3.hooks.session._sessions) { OAUTH3.hooks.session._sessions = {}; }
OAUTH3.hooks.session._sessions[providerUri] = newSession; OAUTH3.hooks.session._sessions[providerUri] = newSession;
return OAUTH3.PromiseA.resolve(newSession); return OAUTH3.PromiseA.resolve(newSession);