mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Added a bunch of stuff
This commit is contained in:
@ -15,8 +15,14 @@ module.exports = function(app, passport) {
|
||||
});
|
||||
|
||||
app.get('/auth/callback', function(req, res, next) {
|
||||
|
||||
var callbackHost = req.headers['x-forwarded-host'];
|
||||
if (!callbackHost) {
|
||||
callbackHost = "localhost:9000";
|
||||
}
|
||||
|
||||
var options = {
|
||||
callbackURL: 'http://' + req.headers['x-forwarded-host'] + '/auth/callback'
|
||||
callbackURL: 'http://' + callbackHost + '/auth/callback'
|
||||
};
|
||||
passport.authenticate('google', options, function(err, user, info) {
|
||||
var redirectUrl = '/';
|
||||
|
Reference in New Issue
Block a user