File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ var Profile = require('./profile');
77
88var Strategy = function ( options , verify ) {
99 options = options || { } ;
10- options . authorizationURL = options . authorizationURL || 'https://ionisx.com/oauth2/authorize' ;
11- options . tokenURL = options . tokenURL || 'https://ionisx.com/oauth2/token' ;
10+ options . baseURL = options . baseURL || 'https://ionisx.com' ;
11+ options . authorizationURL = options . authorizationURL || options . baseURL + '/oauth2/authorize' ;
12+ options . tokenURL = options . tokenURL || options . baseURL + '/oauth2/token' ;
1213 options . scopeSeparator = options . scopeSeparator || ',' ;
1314 options . customHeaders = options . customHeaders || { } ;
1415
@@ -18,7 +19,7 @@ var Strategy = function (options, verify) {
1819
1920 OAuth2Strategy . call ( this , options , verify ) ;
2021 this . name = 'ionisx' ;
21- this . _userProfileURL = options . userProfileURL || 'https://ionisx.com /api/user/me';
22+ this . _userProfileURL = options . userProfileURL || options . baseURL + ' /api/user/me';
2223 this . _oauth2 . useAuthorizationHeaderforGET ( true ) ;
2324} ;
2425
Original file line number Diff line number Diff line change 11{
22 "name" : " passport-ionisx" ,
3- "version" : " 1.0 .0" ,
3+ "version" : " 1.1 .0" ,
44 "description" : " Passport strategy for authenticating with IONISx using the OAuth 2.0 API" ,
55 "keywords" : [
66 " passport" ,
You can’t perform that action at this time.
0 commit comments