I'm trying to exclude one JSF page from login authentication. I've added a security-constraint with no auth-constraint tag in web.xml, as advised here : https://blog.mafr.de/2011/04/17/excluding-pages-from-auth/
That doesn't solve the problem, since I'm using container based login config, configured in my web.xml.
Is there a way to access just one JSF page without a need to log in, while keeping current login configuration?
Here's my login and security-constraint configuration:
<security-constraint>
<web-resource-collection>
<web-resource-name>Restricted Employees</web-resource-name>
<url-pattern>/employee</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>team_leaders</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Public</web-resource-name>
<description>No login required for accepting requests</description>
<url-pattern>/acceptRequests</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.xhtml</form-login-page>
<form-error-page>/login.xhtml</form-error-page>
</form-login-config>
</login-config>