Browse Source

Update SingleSignOnInterceptor.java

MaxKey 3 years ago
parent
commit
3e0764c7cf

+ 1 - 1
maxkey-webs/maxkey-web-maxkey/src/main/java/org/maxkey/web/interceptor/SingleSignOnInterceptor.java

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