[jboss-dev-forums] [JBoss Portal Development] - Cert or Form Login Jboss Portal 2.7.2

Ryan Hood do-not-reply at jboss.com
Thu Sep 2 10:58:50 EDT 2010


allpar23 [http://community.jboss.org/people/allpar23] created the discussion

"Cert or Form Login Jboss Portal 2.7.2"

To view the discussion, visit: http://community.jboss.org/message/560265#560265

--------------------------------------------------------------
I have a question regarding authenication via CLIENT-CERT and FORM based.   I'm trying to figure out the best way or any way to setup a mutli login configuration where the user can choose how they want to login (Client Cert or Form Based).   Currently, I can set the  web.xml file in portal-server.war to the followng and login via form:

<login-config>
<auth-method>FORM</auth-method>
<realm-name>JBoss Portal</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/login.jsp</form-error-page>
</form-login-config>
</login-config>

I can also change it to the following and login successfully via cert:  (using BaseCertLoginModule and custom module to get role info)

<login-config>
<auth-method>CLIENT-CERT</auth-method>
<realm-name>portal</realm-name>

</login-config>


Problem is I want the user to be able to click one of 2 links to login... Link 1 will log the user in via FORM and Link 2 will log the user in via CERT.  Is there a way I can do that.

BTW,  I'm not using a LDAP as user DB.  I'm only using Oracle.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/560265#560265]

Start a new discussion in JBoss Portal Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2014]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100902/5dbadfe5/attachment.html 


More information about the jboss-dev-forums mailing list