Selaa lähdekoodia

cookie is null , clear authentication

MaxKey 2 vuotta sitten
vanhempi
commit
d2e9f3fa5f

+ 3 - 0
maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/web/AuthorizationUtils.java

@@ -54,6 +54,9 @@ public class AuthorizationUtils {
 	    	String  authorization =  authCookie.getValue();
 	    	_logger.trace("Try congress authenticate .");
 	    	doJwtAuthenticate(BEARERTYPE.CONGRESS,authorization,authTokenService,sessionManager);
+		}else {			
+			_logger.debug("cookie is null , clear authentication .");
+			clearAuthentication();
 		}
 	}