embedded browser: default value for callbackURL

This commit is contained in:
siacomuzzi 2014-07-18 18:09:51 -03:00
Родитель b6fb4955cb
Коммит 976cbb8d69
3 изменённых файлов: 5 добавлений и 5 удалений

6
app.js
Просмотреть файл

@ -209,7 +209,7 @@ var overrideIfAuthenticated = function (req, res, next) {
res.locals.account.tenant = client.tenant; res.locals.account.tenant = client.tenant;
res.locals.account.clientId = client.clientID; res.locals.account.clientId = client.clientID;
res.locals.account.clientSecret = client.clientSecret; res.locals.account.clientSecret = client.clientSecret;
res.locals.account.callback = client.callback || 'http://YOUR_APP/callback'; res.locals.account.callback = client.callback;
next(); next();
}); });
}; };
@ -238,7 +238,7 @@ var overrideIfClientInQsForPublicAllowedUrls = function (req, res, next) {
res.locals.account.tenant = client.tenant; res.locals.account.tenant = client.tenant;
res.locals.account.clientId = client.clientID; res.locals.account.clientId = client.clientID;
res.locals.account.clientSecret = client.clientSecret; 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; res.locals.connectionName = req.query.conn;
next(); next();
@ -264,7 +264,7 @@ var overrideIfClientInQs = function (req, res, next) {
res.locals.account.tenant = client.tenant; res.locals.account.tenant = client.tenant;
res.locals.account.clientId = client.clientID; res.locals.account.clientId = client.clientID;
res.locals.account.clientSecret = client.clientSecret; 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; res.locals.connectionName = req.query.conn;
next(); next();

Просмотреть файл

@ -9,7 +9,7 @@ html
var widget = new Auth0Widget({ var widget = new Auth0Widget({
domain: '!{namespace}', domain: '!{namespace}',
clientID: '!{clientID}', clientID: '!{clientID}',
callbackURL: '!{callback}', callbackURL: '!{callback || 'http://YOUR_APP/callback'}',
assetsUrl: '!{auth0_sdk_assets}', assetsUrl: '!{auth0_sdk_assets}',
callbackOnLocationHash: !{callbackOnHash} callbackOnLocationHash: !{callbackOnHash}
}); });

Просмотреть файл

@ -7,7 +7,7 @@ html
var widget = new Auth0Widget({ var widget = new Auth0Widget({
domain: '!{namespace}', domain: '!{namespace}',
clientID: '!{clientID}', clientID: '!{clientID}',
callbackURL: '!{callback}', callbackURL: '!{callback || 'http://YOUR_APP/callback'}',
assetsUrl: '!{auth0_sdk_assets}', assetsUrl: '!{auth0_sdk_assets}',
callbackOnLocationHash: !{callbackOnHash} callbackOnLocationHash: !{callbackOnHash}
}); });