[jboss-user] [JBoss Seam] - Re: Seam + SingleSignON
DiegoCoronel
do-not-reply at jboss.com
Tue Oct 23 10:46:27 EDT 2007
more information...
This is my SecurityModule
| - Component (org.jboss.seam.security.identity)
| authenticateEveryRequest false
| authenticateMethod org.jboss.seam.core.Expressions$2 at 4b72a2
| class class org.jboss.seam.security.RuleBasedIdentity
| cookieEnabled false
| cookieMaxAge 31536000
| cookiePath /fmtam_idoctor_web
| credentialsSet false
| jaasConfigName
| loggedIn true
| password
| principal reter
| rememberMe false
| securityContext org.drools.reteoo.ReteooStatefulSession at 152fd52
| securityRules org.drools.reteoo.ReteooRuleBase at 175249c
| subject Subject: Principal: reter Principal: org.jboss.seam.security.SimpleGroup at 4b79e9d
| username Diego
| toString() org.jboss.seam.security.RuleBasedIdentity at 13b8970
|
|
and this is my another module
| - Component (org.jboss.seam.security.identity)
| authenticateEveryRequest false
| authenticateMethod
| class class org.jboss.seam.security.RuleBasedIdentity
| cookieEnabled false
| cookieMaxAge 31536000
| cookiePath /fmtam_seguranca_web
| credentialsSet false
| jaasConfigName
| loggedIn false
| password
| principal
| rememberMe false
| securityContext
| securityRules
| subject Subject:
| username
| toString() org.jboss.seam.security.RuleBasedIdentity at 38a3ca
|
obs: i just have 1 authenticator class,
| @Name("authenticator")
| @Scope(ScopeType.SESSION)
| @Stateful
| public class Authenticator implements IAuthenticator {
|
| @Logger
| Log log;
|
| @In
| Identity identity;
|
| public boolean authenticate() {
| System.out.println("Iniciando login SESSION");
| identity.setUsername("Diego");
| log.info("authenticating #0", identity.getUsername());
| identity.addRole("admin");
| Identity.instance().addRole("usuario");
| System.out.println("finalizando login");
| return true;
| }
|
| public Identity getIdentity() {
| return identity;
| }
|
| public void setIdentity(Identity identity) {
| this.identity = identity;
| }
| @Remove
| public void remove(){
| System.out.println("Destruindo stateful");
| }
|
| }
|
if i enable my cookie or set my cookiePath/fmtam_idoctor_web in all applications, my singleSignOn will work ? how can i do it ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097925#4097925
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097925
More information about the jboss-user
mailing list