-
1. Re: Custom Login
bdaw Feb 24, 2007 3:00 AM (in response to ghyoju)I don't know exactly what you want to do but here are the sources you are talking about:
http://anonsvn.jboss.org/repos/jbossas/projects/security/trunk/src/main/org/jboss/security/auth/spi/UsernamePasswordLoginModule.java
http://anonsvn.jboss.org/repos/portal/branches/JBoss_Portal_Branch_2_4/identity/src/main/org/jboss/portal/identity/auth/IdentityLoginModule.java
http://anonsvn.jboss.org/repos/portal/branches/JBoss_Portal_Branch_2_4/core/src/resources/portal-core-sar/conf/login-config.xml
For classes from org.jboss.security.* you need to look in jbosssx.jar -
2. Re: Custom Login
ghyoju Feb 25, 2007 5:02 PM (in response to ghyoju)Hi bdaw,
The IdentityLoginModule class you mentioned is in package
org.jboss.portal.identity.auth and extends org.jboss.security.auth.spi.UsernamePasswordLoginModule
but the one I found in jbosssx.jar is in package
org.jboss.security.auth.spi and extends org.jboss.security.auth.spi.AbstractServerLoginModule
I need to use the one you mentioned (gave the url for) as I need to use the method getUsernameAndPassword() from class UsernamePasswordLoginModule. Which jar should I use?
Am I missing something?
Thanks a lot. -
3. Re: Custom Login
bdaw Feb 25, 2007 5:19 PM (in response to ghyoju)jbosssx.jar contains stuff for org.jboss.security.*
But I'm wondering what do you mean by "use a method"... UserPasswordLoginModule is an abstract class. What exactly do you want to do? -
4. Re: Custom Login
ghyoju Feb 25, 2007 7:26 PM (in response to ghyoju)Hi bdaw,
IdentityLoginModule extends UsernamePasswordLoginModule so the method getUsernameAndPassword() implemented in class UsernamePasswordLoginModule is inherited by IdentityLoginModule.
I want to extend IdentityLoginModule and I want to use the method getUsernameAndPassword() which is implemented in UsernamePasswordLoginModule.
Thanks a lot. -
5. Re: Custom Login
bvogt Feb 26, 2007 2:47 AM (in response to ghyoju)I would propose to build the portal from its sources and use the downloaded thirdparty libraries and the ones from the portal build.
Let's assume you have extracted the portal libs into a directory and defined the following eclipse classpath variables:JBOSS_PORTAL_LIBS => D:/jBoss/portal-libs.241 JBOSS_THIRDPARTY_LIBS => D:/jBoss/jboss-portal-2.4.1-src/thirdparty
and your .classpath file contains:<classpathentry kind="var" path="JBOSS_PORTAL_LIBS/portal-identity-lib.jar"/> <classpathentry kind="var" path="JBOSS_THIRDPARTY_LIBS/jbossas/core-libs/lib/jbosssx.jar"/>
the references should be resolved.
Burkhard