File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ function Strategy(options = {}) {
9
9
passport . Strategy . call ( this ) ;
10
10
this . controlTowerUrl = options . controlTowerUrl ;
11
11
this . callbackUrl = options . callbackUrl ;
12
+ this . applications = options . applications ;
12
13
}
13
14
14
15
// Inherits from Passport Strategy
@@ -67,11 +68,11 @@ Strategy.prototype.verify = function verify(userToken, done) {
67
68
} ;
68
69
69
70
Strategy . prototype . login = function login ( req , res ) {
70
- res . redirect ( `${ this . controlTowerUrl } /auth?callbackUrl=${ this . callbackUrl } &token=true` ) ;
71
+ res . redirect ( `${ this . controlTowerUrl } /auth?callbackUrl=${ this . callbackUrl } &token=true&applications= ${ this . applications } ` ) ;
71
72
} ;
72
73
73
74
Strategy . prototype . logout = function logout ( req , res ) {
74
- res . redirect ( `${ this . controlTowerUrl } /auth/logout?callbackUrl=${ this . callbackUrl } &token=true` ) ;
75
+ res . redirect ( `${ this . controlTowerUrl } /auth/logout?callbackUrl=${ this . callbackUrl } &token=true&applications= ${ this . applications } ` ) ;
75
76
} ;
76
77
77
78
Strategy . prototype . error = function error ( err ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " passport-control-tower" ,
3
- "version" : " 0.1.6 " ,
3
+ "version" : " 0.1.8 " ,
4
4
"description" : " A Passport's strategy for Control Tower" ,
5
5
"main" : " lib/auth.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments