From 9574d9b982f7a1578cdbe828f259fc045b0f9b68 Mon Sep 17 00:00:00 2001 From: Drew Warren Date: Wed, 5 Jul 2017 16:38:14 -0600 Subject: [PATCH] Add subject to clientParams --- oauth3.core.js | 4 ++++ oauth3.issuer.js | 1 + 2 files changed, 5 insertions(+) diff --git a/oauth3.core.js b/oauth3.core.js index f14d429..cb318eb 100644 --- a/oauth3.core.js +++ b/oauth3.core.js @@ -297,10 +297,13 @@ debug: opts.debug || undefined , client_uri: opts.client_uri || opts.clientUri || undefined , client_id: opts.client_id || opts.client_uri || undefined + , subject: opts.subject , state: state }; var result; + console.log('implicitGrant opts.subject: ', opts.subject); + params.response_type = responseType; if (scope) { params.scope = OAUTH3.scope.stringify(scope); @@ -712,6 +715,7 @@ , client_id: opts.client_id || opts.client_uri , client_uri: opts.client_uri || opts.client_id , scope: opts.scope + , subject: opts.subject , state: opts._state || undefined , debug: opts.debug } diff --git a/oauth3.issuer.js b/oauth3.issuer.js index 257a196..19f3dc2 100644 --- a/oauth3.issuer.js +++ b/oauth3.issuer.js @@ -422,6 +422,7 @@ OAUTH3.authz.redirectWithToken = function (providerUri, session, clientParams, s , response_type: clientParams.response_type , referrer: clientParams.referrer , session: session + , subject: clientParams.subject , debug: clientParams.debug }).then(function (results) {