It turns out that Jetty currently doesn't support sign sign-on between
web apps - guess I'll have to try Tomcat instead :

http://groups.yahoo.com/group/jetty-support/message/3947


In answer to your question, if you want to use FORM based
authentication, its defined in the web app deployment descriptor
(web.xml) as follows :

  <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>WebSecurityRealm</realm-name>
    <form-login-config>
      <form-login-page>/login.jsp</form-login-page>
      <form-error-page>/fail_login.jsp</form-error-page>
    </form-login-config>
  </login-config>
  
The realm name needs to be the name of a JAAS security realm - this is
defined in the JAAS configuration file (login-config.xml) and the JBoss
specific deployment dexcriptor (jboss-web.xml).

in jboss-web.xml :

  <security-domain>java:/jaas/WebSecurityRealm</security-domain>

in login-config.xml :

    <application-policy name = "WebSecurityRealm">
       <authentication>
         <login-module code =
"org.jboss.security.auth.spi.DatabaseServerLoginModule" flag =
"sufficient">
             <module-option name =
"dsJndiName">java:/OracleDS</module-option>
             <module-option name = "principalsQuery">select Password
from Principals where PrincipalId=?</module-option>
             <module-option name = "rolesQuery">select Role, RoleGroup
from Roles where PrincipalId=?</module-option>
         </login-module>
       </authentication>
    </application-policy>


-----Original Message-----
From: KRALIK Vladimir [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 4 October 2002 4:39 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Single Sign On Support Between Multiple
WebApps in Jetty


I think, that FORM-based security need Session on server-side. Each
webapp has its own Session-object, and when this session doesn't exists
the login form is showed.

Try BASIC autentification. In this form browser sends security data
(login and password) to server in HTTP-header.  
I use this form when I develop webapps, and often need restart server.
Browser holds login and password between server restart.

                vlk

BTW: Can you please send me a link to a description how set up this on
form based autentification on Tomcat/Catalina ? Thanks.

> -----Original Message-----
> From: Gavin Hughes [mailto:[EMAIL PROTECTED]]
> Sent: 4. oktobra 2002 6:41
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Single Sign On Support Between Multiple
> WebApps in Jetty
> 
> 
> 
> I've been looking around to see if I could perform a single sign on 
> between multiple web applications deployed under the same server 
> instance of JBoss, but have not found a way to do this with Jetty 
> (although I have seen a description of how to do this with 
> Tomcat/Catalina).
> 
> I currently have 2 web apps deployed - both apps use standard J2EE 
> security (FORM based).
> 
> Each of the web apps are configured to use the same security realm in 
> their deployment descriptors (web.xml), and the same security domain 
> in the JBoss specific deployment descriptor (jboss-web.xml).
> 
> Each web app requires me to authenticate independently though
> - is there
> anything in particular I need to do to get single sign-on working ?
> 
> I am using JBoss 3.0.3 (with Jetty bundled) with JDK 1.4.1 on Windows 
> XP.
> 
> Any help appreciated.
> 
> Gavin.
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to