Add subject to clientParams
This commit is contained in:
parent
9cb2ad036b
commit
9574d9b982
|
@ -297,10 +297,13 @@
|
||||||
debug: opts.debug || undefined
|
debug: opts.debug || undefined
|
||||||
, client_uri: opts.client_uri || opts.clientUri || undefined
|
, client_uri: opts.client_uri || opts.clientUri || undefined
|
||||||
, client_id: opts.client_id || opts.client_uri || undefined
|
, client_id: opts.client_id || opts.client_uri || undefined
|
||||||
|
, subject: opts.subject
|
||||||
, state: state
|
, state: state
|
||||||
};
|
};
|
||||||
var result;
|
var result;
|
||||||
|
|
||||||
|
console.log('implicitGrant opts.subject: ', opts.subject);
|
||||||
|
|
||||||
params.response_type = responseType;
|
params.response_type = responseType;
|
||||||
if (scope) {
|
if (scope) {
|
||||||
params.scope = OAUTH3.scope.stringify(scope);
|
params.scope = OAUTH3.scope.stringify(scope);
|
||||||
|
@ -712,6 +715,7 @@
|
||||||
, client_id: opts.client_id || opts.client_uri
|
, client_id: opts.client_id || opts.client_uri
|
||||||
, client_uri: opts.client_uri || opts.client_id
|
, client_uri: opts.client_uri || opts.client_id
|
||||||
, scope: opts.scope
|
, scope: opts.scope
|
||||||
|
, subject: opts.subject
|
||||||
, state: opts._state || undefined
|
, state: opts._state || undefined
|
||||||
, debug: opts.debug
|
, debug: opts.debug
|
||||||
}
|
}
|
||||||
|
|
|
@ -422,6 +422,7 @@ OAUTH3.authz.redirectWithToken = function (providerUri, session, clientParams, s
|
||||||
, response_type: clientParams.response_type
|
, response_type: clientParams.response_type
|
||||||
, referrer: clientParams.referrer
|
, referrer: clientParams.referrer
|
||||||
, session: session
|
, session: session
|
||||||
|
, subject: clientParams.subject
|
||||||
, debug: clientParams.debug
|
, debug: clientParams.debug
|
||||||
}).then(function (results) {
|
}).then(function (results) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue