mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
add openid to options
This commit is contained in:
parent
e8a2a6637f
commit
4c2da1056d
2 changed files with 37 additions and 11 deletions
|
@ -1,5 +1,4 @@
|
|||
var http = require('http')
|
||||
|
||||
var urljoin = require('url-join')
|
||||
var express = require('express')
|
||||
var validator = require('express-validator')
|
||||
|
@ -28,7 +27,6 @@ var extensions = [new openid.SimpleRegistration({
|
|||
|
||||
module.exports = function(options) {
|
||||
var verifyUrl = urljoin(options.appUrl, "/auth/verify");
|
||||
console.log(verifyUrl);
|
||||
|
||||
var relyingParty = new openid.RelyingParty(
|
||||
verifyUrl,
|
||||
|
@ -42,14 +40,6 @@ module.exports = function(options) {
|
|||
, app = express()
|
||||
, server = Promise.promisifyAll(http.createServer(app))
|
||||
|
||||
// lifecycle.observe(function() {
|
||||
// log.info('Waiting for client connections to end')
|
||||
// return server.closeAsync()
|
||||
// .catch(function() {
|
||||
// // Okay
|
||||
// })
|
||||
// })
|
||||
|
||||
app.set('strict routing', true)
|
||||
app.set('case sensitive routing', true)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue