Hello Everybody, 

I use authentication on jboss using a how-to found in : 
http://www.javaworld.com/javaforums/printthread.php?Board=JavaSecurity&main=2500&type=post
 

But I have problem, when I call any page of the site(servlet or jsp), it 
returns me the form login page (it s OK) , so I log in. When logged, I'm 
waiting that it returns me the page requested at the beginning (which contains 
frames) BUT, in eachframe, I find login window. I feel like in the servlet (of 
authentication) it checks well authentication but it's not saved and when we 
request another page, it replies login. 
If anybody has an idea, Welcome

I give you the content of web.xml et le snippet code of the servlet 
(authentication). 

Thanks.

Here are my rule in web.xml 
<security-constraint> 
<web-resource-collection> 
<web-resource-name>action</web-resource-name> 
Declarative security tests 
<url-pattern>/affichegrille</url-pattern> 
<url-pattern>/afficheDoc</url-pattern> 
<url-pattern>/jsp/*</url-pattern> 
<!--<url-pattern>/accespws</url-pattern>--> 
<http-method>HEAD</http-method> 
<http-method>GET</http-method> 
<http-method>POST</http-method> 
<http-method>PUT</http-method> 
<http-method>DELETE</http-method> 
</web-resource-collection> 
<!--Le role ayant acces à toutes les ressources--> 
<auth-constraint> 
<role-name>Java</role-name> 
</auth-constraint> 
<user-data-constraint> 
no description 
<transport-guarantee>NONE</transport-guarantee> 
</user-data-constraint> 
</security-constraint> 
<login-config> 
<auth-method>FORM</auth-method> 
<form-login-config> 
<form-login-page>/logon.jsp</form-login-page> 
<form-error-page>/logon.jsp</form-error-page> 
</form-login-config> 
</login-config>

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857339#3857339

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857339


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to