embedded browser: default value for callbackURL
This commit is contained in:
Родитель
b6fb4955cb
Коммит
976cbb8d69
6
app.js
6
app.js
|
@ -209,7 +209,7 @@ var overrideIfAuthenticated = function (req, res, next) {
|
|||
res.locals.account.tenant = client.tenant;
|
||||
res.locals.account.clientId = client.clientID;
|
||||
res.locals.account.clientSecret = client.clientSecret;
|
||||
res.locals.account.callback = client.callback || 'http://YOUR_APP/callback';
|
||||
res.locals.account.callback = client.callback;
|
||||
next();
|
||||
});
|
||||
};
|
||||
|
@ -238,7 +238,7 @@ var overrideIfClientInQsForPublicAllowedUrls = function (req, res, next) {
|
|||
res.locals.account.tenant = client.tenant;
|
||||
res.locals.account.clientId = client.clientID;
|
||||
res.locals.account.clientSecret = client.clientSecret;
|
||||
res.locals.account.callback = client.callback || 'http://YOUR_APP/callback';
|
||||
res.locals.account.callback = client.callback;
|
||||
res.locals.connectionName = req.query.conn;
|
||||
|
||||
next();
|
||||
|
@ -264,7 +264,7 @@ var overrideIfClientInQs = function (req, res, next) {
|
|||
res.locals.account.tenant = client.tenant;
|
||||
res.locals.account.clientId = client.clientID;
|
||||
res.locals.account.clientSecret = client.clientSecret;
|
||||
res.locals.account.callback = client.callback || 'http://YOUR_APP/callback';
|
||||
res.locals.account.callback = client.callback;
|
||||
res.locals.connectionName = req.query.conn;
|
||||
|
||||
next();
|
||||
|
|
|
@ -9,7 +9,7 @@ html
|
|||
var widget = new Auth0Widget({
|
||||
domain: '!{namespace}',
|
||||
clientID: '!{clientID}',
|
||||
callbackURL: '!{callback}',
|
||||
callbackURL: '!{callback || 'http://YOUR_APP/callback'}',
|
||||
assetsUrl: '!{auth0_sdk_assets}',
|
||||
callbackOnLocationHash: !{callbackOnHash}
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@ html
|
|||
var widget = new Auth0Widget({
|
||||
domain: '!{namespace}',
|
||||
clientID: '!{clientID}',
|
||||
callbackURL: '!{callback}',
|
||||
callbackURL: '!{callback || 'http://YOUR_APP/callback'}',
|
||||
assetsUrl: '!{auth0_sdk_assets}',
|
||||
callbackOnLocationHash: !{callbackOnHash}
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче