Update SingleSignOnInterceptor.java

This commit is contained in:
MaxKey 2022-04-12 22:34:20 +08:00
parent 50bfb3087e
commit 3e0764c7cf

View File

@ -52,7 +52,7 @@ public class SingleSignOnInterceptor implements AsyncHandlerInterceptor {
AuthorizationUtils.authenticateWithCookie( AuthorizationUtils.authenticateWithCookie(
request,authJwtService,onlineTicketService); request,authJwtService,onlineTicketService);
if(AuthorizationUtils.isAuthenticated()){ if(AuthorizationUtils.isNotAuthenticated()){
//http://sso.maxkey.top/sign/ //http://sso.maxkey.top/sign/
String loginUrl = "http://sso.maxkey.top:4200/#/passport/login"; String loginUrl = "http://sso.maxkey.top:4200/#/passport/login";
String savedRequestUrl = UrlUtils.buildFullRequestUrl(request); String savedRequestUrl = UrlUtils.buildFullRequestUrl(request);