<%@tag pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@tag import="org.springframework.context.ApplicationContext"%>
<%@tag import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@tag import="com.mossle.api.user.UserConnector"%>
<%@tag import="org.springframework.security.core.Authentication"%>
<%@tag import="org.springframework.security.core.context.SecurityContext"%>
<%@tag import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@tag import="com.mossle.api.userauth.UserAuthDTO"%>
<%@tag import="org.springframework.security.authentication.AnonymousAuthenticationToken"%>
<%
	if ((SecurityContextHolder.getContext() == null)
		|| !(SecurityContextHolder.getContext() instanceof SecurityContext)
		|| (SecurityContextHolder.getContext().getAuthentication() == null)
		|| (SecurityContextHolder.getContext().getAuthentication().getPrincipal() == null)) {
		return;
	}
	Authentication authentication = SecurityContextHolder.getContext().getAuthentication();

	if (authentication instanceof AnonymousAuthenticationToken) {
%>
<jsp:doBody/>
<%
	}
%>
