passport-tequila
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -29,3 +29,8 @@ /** | ||
hostname_bits[0] = "tequila"; | ||
return hostname_bits.join("."); | ||
if (hostname_bits.length == 1) { | ||
// os.hostname() is not qualified; take a guess | ||
return "tequila.epfl.ch"; | ||
} else { | ||
return hostname_bits.join("."); | ||
} | ||
})(); | ||
@@ -116,3 +121,4 @@ | ||
var teq_post_payload = dict2txt(teq_options); | ||
debug("_teqRequest to " + path +"\n" + teq_post_payload); | ||
debug("_teqRequest to https://" + this.tequila_host + path +"\n" + | ||
teq_post_payload); | ||
var https_options = { | ||
@@ -119,0 +125,0 @@ hostname: this.tequila_host, |
@@ -33,2 +33,6 @@ /** | ||
protocol.require = opts.require; | ||
["tequila_host", "tequila_port", "tequila_createrequest_path", "tequila_requestauth_path", | ||
"tequila_fetchattributes_path", "tequila_logout_path"].forEach(function (k) { | ||
if (opts[k]) protocol[k] = opts[k]; | ||
}); | ||
@@ -35,0 +39,0 @@ var self = this; |
{ | ||
"name": "passport-tequila", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "scripts": { |
17242
370