Merge pull request #1082 from cloudyu/pull
Fix wrong config options In `./lib/web/auth/` some config includes still used `config.serverurl` instead of the correct `config.serverURL`. This causes wrong URL in worst case. This patch should fix those problems and migrate the wrong statements to camelcase.
This commit is contained in:
commit
b749d50e20
2 changed files with 4 additions and 4 deletions
|
@ -100,7 +100,7 @@ oauth2Auth.get('/auth/oauth2', function (req, res, next) {
|
||||||
// github auth callback
|
// github auth callback
|
||||||
oauth2Auth.get('/auth/oauth2/callback',
|
oauth2Auth.get('/auth/oauth2/callback',
|
||||||
passport.authenticate('oauth2', {
|
passport.authenticate('oauth2', {
|
||||||
successReturnToOrRedirect: config.serverurl + '/',
|
successReturnToOrRedirect: config.serverURL + '/',
|
||||||
failureRedirect: config.serverurl + '/'
|
failureRedirect: config.serverURL + '/'
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
|
@ -55,7 +55,7 @@ openIDAuth.post('/auth/openid', urlencodedParser, function (req, res, next) {
|
||||||
// openID auth callback
|
// openID auth callback
|
||||||
openIDAuth.get('/auth/openid/callback',
|
openIDAuth.get('/auth/openid/callback',
|
||||||
passport.authenticate('openid', {
|
passport.authenticate('openid', {
|
||||||
successReturnToOrRedirect: config.serverurl + '/',
|
successReturnToOrRedirect: config.serverURL + '/',
|
||||||
failureRedirect: config.serverurl + '/'
|
failureRedirect: config.serverURL + '/'
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue