-
1. Re: Seam + SingleSignON
diegocoronel Oct 23, 2007 8:14 AM (in response to diegocoronel)Anyone ?? i wanna do something like JDBC..Realm, i did it in another applications without Seam and its perfect. But with Seam Authenticator the SingleSignOn valve is not working, any suggestion ?? is there any possibility to do it with seam ?? i have 2 war, ModuleSecutity and PresentationModule, my login is in ModuleSecutity and i want my PresentationModule acessing Identify from ModuleSecutity.... anyone pls ?? its really necessary in my projects. ty
-
2. Re: Seam + SingleSignON
diegocoronel Oct 23, 2007 10:45 AM (in response to diegocoronel)more information...
This is my SecurityModule- Component (org.jboss.seam.security.identity) authenticateEveryRequest false authenticateMethod org.jboss.seam.core.Expressions$2@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@152fd52 securityRules org.drools.reteoo.ReteooRuleBase@175249c subject Subject: Principal: reter Principal: org.jboss.seam.security.SimpleGroup@4b79e9d username Diego toString() org.jboss.seam.security.RuleBasedIdentity@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@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 ? -
3. Re: Seam + SingleSignON
diegocoronel Oct 23, 2007 2:41 PM (in response to diegocoronel)so, i need suggestions, pls, anyone can tell me if its possible with seam ? i need to log in /system1 and in another module like /system2 use the roles from system1/ like login at once and use these roles in all modules ? if i do it using
<Realm className="org.apache.catalina.realm.DataSourceRealm" debug="99" dataSourceName="jdbc/authority" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name"/>
can i use jboss EL like hasRole('anyRole') ? any suggestion ? -
4. Re: Seam + SingleSignON
diegocoronel Oct 24, 2007 9:22 AM (in response to diegocoronel)Seam Team, :)
Is there any solution for me ? should i believe i cant do it ? or my english is so bad that you cant understand ? ill be really happy with some suggestions. -
5. Re: Seam + SingleSignON
shane.bryzak Oct 24, 2007 10:19 AM (in response to diegocoronel)I don't really understand the issue, however Seam Security currently has no explicit support for single sign on. We intend to provide integration with JBoss SSO, however this is on hold for now. You can track its progress here:
http://jira.jboss.org/jira/browse/JBSEAM-1032