passport-control-tower
Advanced tools
Comparing version 0.1.6 to 0.1.8
@@ -12,2 +12,3 @@ const request = require('superagent'); | ||
this.callbackUrl = options.callbackUrl; | ||
this.applications = options.applications; | ||
} | ||
@@ -71,7 +72,7 @@ | ||
Strategy.prototype.login = function login(req, res) { | ||
res.redirect(`${this.controlTowerUrl}/auth?callbackUrl=${this.callbackUrl}&token=true`); | ||
res.redirect(`${this.controlTowerUrl}/auth?callbackUrl=${this.callbackUrl}&token=true&applications=${this.applications}`); | ||
}; | ||
Strategy.prototype.logout = function logout(req, res) { | ||
res.redirect(`${this.controlTowerUrl}/auth/logout?callbackUrl=${this.callbackUrl}&token=true`); | ||
res.redirect(`${this.controlTowerUrl}/auth/logout?callbackUrl=${this.callbackUrl}&token=true&applications=${this.applications}`); | ||
}; | ||
@@ -78,0 +79,0 @@ |
{ | ||
"name": "passport-control-tower", | ||
"version": "0.1.6", | ||
"version": "0.1.8", | ||
"description": "A Passport's strategy for Control Tower", | ||
@@ -5,0 +5,0 @@ "main": "lib/auth.js", |
98770
222