diff --git a/oauth3.core.js b/oauth3.core.js index 9e90b33..e796a36 100644 --- a/oauth3.core.js +++ b/oauth3.core.js @@ -286,12 +286,13 @@ var redirectUri = opts.redirectUri; var scope = opts.scope || directive.authn_scope; - var clientId = opts.appId || opts.clientId; + var clientId = opts.appId || opts.clientId || opts.clientUri; var args = directive[type]; var uri = args.url; var state = core.utils.randomState(); var params = { debug: opts.debug || undefined + , client_uri: opts.client_uri || opts.clientUri || undefined }; var loc; var result;