Reply To: [Solved] PrettyFaces & JAAS problem

Splash Forums PrettyFaces Users [Solved] PrettyFaces & JAAS problem Reply To: [Solved] PrettyFaces & JAAS problem

#26288

Nasicus
Participant

Sorry but I have no idea how to do what you said – can you give me an example ? 🙂

I did some further research (tried to create a workaround):

Even if I add a file to the unprotected area:


....
		<web-resource-collection>
			<web-resource-name>Unprotected Area</web-resource-name>
			<url-pattern>/resources/*</url-pattern>
			<url-pattern>/javax.faces.resource/*</url-pattern>
			<url-pattern>/unprotected.xhtml</url-pattern>
		</web-resource-collection>
	</security-constraint>
.... 

and define a pretty-faces rule for this:


	<url-mapping id="login">
		<pattern value="/login/#{login}/#{pass}" />
		<view-id value="/unprotected.xhtml" />
	</url-mapping>

It won’t work! So this means prettyfaces will work only if a successful login was done (user is logged in) and not before…