1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

openid change /auth/verify to /auth/openid/verify

This commit is contained in:
codeskyblue 2016-01-14 17:22:55 +08:00 committed by Vishal Banthia
parent 87e5d80209
commit 68e29a01c2

View file

@ -16,7 +16,7 @@ module.exports = function(options) {
"fullname" : true, "fullname" : true,
})]; })];
var relyingParty = new openid.RelyingParty( var relyingParty = new openid.RelyingParty(
urljoin(options.appUrl, "/auth/verify"), urljoin(options.appUrl, "/auth/openid/verify"),
null, // Realm (optional, specifies realm for OpenID authentication) null, // Realm (optional, specifies realm for OpenID authentication)
false, // Use stateless verification false, // Use stateless verification
false, // Strict mode false, // Strict mode
@ -45,7 +45,7 @@ module.exports = function(options) {
}); });
}) })
app.get('/auth/verify', function(req, res){ app.get('/auth/openid/verify', function(req, res){
log.setLocalIdentifier(req.ip) log.setLocalIdentifier(req.ip)
relyingParty.verifyAssertion(req, function(err, result){ relyingParty.verifyAssertion(req, function(err, result){