mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 00:03:28 +02:00
code conversion
This commit is contained in:
committed by
Vishal Banthia
parent
68e29a01c2
commit
c3df22070c
@@ -32,14 +32,14 @@ module.exports = function(options) {
|
||||
})
|
||||
|
||||
app.get('/auth/openid/', function(req, res) {
|
||||
log.info('openid identifier url: %s', options.identifierUrl)
|
||||
relyingParty.authenticate(options.identifierUrl, false, function(err, authUrl){
|
||||
log.info('openid identifier url: %s', options.openid.identifierUrl)
|
||||
relyingParty.authenticate(options.openid.identifierUrl, false, function(err, authUrl){
|
||||
if (err){
|
||||
res.send("auth failed");
|
||||
} else if(!authUrl){
|
||||
res.send("auth failed");
|
||||
} else {
|
||||
log.info("redirect to authUrl: %s", options.identifierUrl);
|
||||
log.info("redirect to authUrl: %s", options.openid.identifierUrl);
|
||||
res.redirect(authUrl);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user