bugfix discover
This commit is contained in:
parent
3dcc52c428
commit
efd813a107
|
@ -483,9 +483,9 @@
|
|||
oauth3._discoverHelperNew = function (providerUri, opts) {
|
||||
opts = opts || {};
|
||||
var state = oauth3.createState();
|
||||
var url = oauth3.core.discover(providerUri, { state: state, appUrl: (opts.appUrl || getDefaultAppUrl()) });
|
||||
var discObj = oauth3.core.discover(providerUri, { state: state, appUrl: (opts.appUrl || getDefaultAppUrl()) });
|
||||
|
||||
return oauth3.insertIframe(url, state, opts).then(function (directives) {
|
||||
return oauth3.insertIframe(discObj.url, state, opts).then(function (directives) {
|
||||
return directives;
|
||||
}, function (err) {
|
||||
return oauth3.PromiseA.reject(err);
|
||||
|
|
Loading…
Reference in New Issue