File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 42
42
"ADMIN_TOOL_URL" : " https://api.topcoder-dev.com/v2" ,
43
43
"API_VERSION_PATH" : " v3" ,
44
44
"COOKIES_SECURE" : false ,
45
- "AUTH_URL" : " https://accounts.topcoder-dev.com/member " ,
46
- "ACCOUNTS_CONNECTOR_URL" : " https://accounts.topcoder-dev.com/connector.html " ,
45
+ "AUTH_URL" : " https://accounts-auth0 .topcoder-dev.com" ,
46
+ "ACCOUNTS_CONNECTOR_URL" : " https://accounts-auth0 .topcoder-dev.com" ,
47
47
"JWT_V3_NAME" : " v3jwt" ,
48
48
"JWT_V2_NAME" : " tcjwt" ,
49
49
"OAUTH2_TOKEN_NAME" : " oa2spigit" ,
118
118
"ADMIN_TOOL_URL" : " https://api.topcoder.com/v2" ,
119
119
"API_VERSION_PATH" : " v3" ,
120
120
"COOKIES_SECURE" : false ,
121
- "AUTH_URL" : " https://accounts.topcoder.com/member " ,
122
- "ACCOUNTS_CONNECTOR_URL" : " https://accounts.topcoder.com/connector.html " ,
121
+ "AUTH_URL" : " https://accounts-auth0 .topcoder.com" ,
122
+ "ACCOUNTS_CONNECTOR_URL" : " https://accounts-auth0 .topcoder.com" ,
123
123
"JWT_V3_NAME" : " v3jwt" ,
124
124
"JWT_V2_NAME" : " tcjwt" ,
125
125
"OAUTH2_TOKEN_NAME" : " oa2spigit" ,
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ angular.module('supportAdminApp')
148
148
*
149
149
* @return {Promise } promise which is resolved when user is logged out on the server
150
150
*/
151
- AuthService . logout = function ( ) {
151
+ /* AuthService.logout = function() {
152
152
// send request to the server that we want to log out
153
153
// save logginOut promise to be accessed any time
154
154
AuthService.logginOut = proxyCall(LOGOUT_REQUEST, LOGOUT_SUCCESS, LOGOUT_FAILURE).then(function() {
@@ -159,6 +159,10 @@ angular.module('supportAdminApp')
159
159
$cookies.remove(JWT_V3_NAME);
160
160
161
161
return AuthService.logginOut;
162
+ } */
163
+
164
+ AuthService . logout = function ( ) {
165
+ $window . location . href = AUTH_URL + '?logout=true&retUrl=' + encodeURIComponent ( $window . location . href ) ;
162
166
}
163
167
164
168
AuthService . login = function ( ) {
@@ -229,7 +233,7 @@ angular.module('supportAdminApp')
229
233
* @return {Boolean } true if token V3 is expired
230
234
*/
231
235
AuthService . isTokenV3Expired = function ( ) {
232
- return ! AuthService . getTokenV3 ( ) || jwtHelper . isTokenExpired ( AuthService . getTokenV3 ( ) , 300 ) ;
236
+ return ! AuthService . getTokenV3 ( ) || jwtHelper . isTokenExpired ( AuthService . getTokenV3 ( ) , 10 ) ;
233
237
}
234
238
235
239
/**
You can’t perform that action at this time.
0 commit comments