set provider_uri and client_uri from session when manually setting
This commit is contained in:
parent
9969c4dba9
commit
3a805d071a
|
@ -628,7 +628,7 @@
|
|||
function fetch() {
|
||||
if (preq.session) {
|
||||
// TODO check session.token.aud against preq.url to make sure they match
|
||||
console.warn("[security] session audience checking has not been implemented yet (it's up to you to check)");
|
||||
//console.warn("[security] session audience checking has not been implemented yet (it's up to you to check)");
|
||||
preq.headers = preq.headers || {};
|
||||
preq.headers.Authorization = 'Bearer ' + (preq.session.access_token || preq.session.accessToken);
|
||||
}
|
||||
|
@ -1086,6 +1086,8 @@
|
|||
if (!me._providerUri) {
|
||||
throw new Error("'providerUri' was not supplied");
|
||||
}
|
||||
opts.session.provider_uri = me._providerUri
|
||||
opts.session.client_uri = me._clientUri
|
||||
me.session(opts.session, opts.sessionId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue