[jboss-user] [JBoss Portal] New message: "need help portal authentication"
Rajasundaram Gopalan
do-not-reply at jboss.com
Thu Mar 4 17:28:16 EST 2010
User development,
A new message was posted in the thread "need help portal authentication":
http://community.jboss.org/message/530062#530062
Author : Rajasundaram Gopalan
Profile : http://community.jboss.org/people/rajasundaram
Message:
--------------------------------------------------------------
Hi,
Problem:
Sometimes custom authentication policy was not been used and it lets the user to login.
Here is my configuration:
I created application named as 'SamplePortal'
Canges are,
1. login-config.xml
<application-policy name = "SamplePortal">
<authentication>
<login-module code="com.sample.base.auth.SamplePortalLoginModule" flag="required">
</login-module>
</authentication>
</application-policy>
2. web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>SamplePortal</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>sample</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>sample</role-name>
</security-role>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/jsp/login.jsp</form-login-page>
<form-error-page>/jsp/elogin.jsp</form-error-page>
</form-login-config>
</login-config>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530062#530062
More information about the jboss-user
mailing list