mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 00:03:28 +02:00
add openid to options
This commit is contained in:
committed by
Vishal Banthia
parent
e8a2a6637f
commit
4c2da1056d
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user