2 Replies Latest reply on Nov 10, 2006 1:44 PM by Anil Saldanha

    Jboss Portal Integration with OpenSSO

    biju mathew Newbie

      I have OpenSSO doing the authentication, post authentication the userid is sent to JBoss Portal, I have a servlet filter which takes this and does a redirect.


      String url = "j_security_check?j_username=" + username + "&j_password=" + password;
      String redirectUrl = response.encodeRedirectURL(url);
      response.sendRedirect(redirectUrl);

      I was expecting the login to happen and user taken to the portal home page. This does not work.

      Any inputs on how to get this done?

        • 1. Re: Jboss Portal Integration with OpenSSO
          Manoj Sharma Newbie

          ===========================
          Here is the log trace for request as
          http://localhost:8080/portal/j_security_check?j_username=admin&j_password=admin
          ===========================

          2006-11-10 20:52:47,650 DEBUG [org.apache.catalina.connector.CoyoteAdapter] Requested cookie session id is 62864B86858DB412296A21D309CC298D
          2006-11-10 20:52:47,650 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Security checking request GET /portal/j_security_check
          2006-11-10 20:52:47,650 DEBUG [org.apache.catalina.authenticator.FormAuthenticator] Authenticating username 'admin'
          2006-11-10 20:52:47,650 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] Begin authenticate, username=admin
          2006-11-10 20:52:47,650 TRACE [org.jboss.security.plugins.JaasSecurityManager.portal] Begin isValid, principal:admin, cache info: org.jboss.security.plugins.JaasSecurityManager$DomainInfo@17e9b52[Subject(22467608).principals=org.jboss.security.SimplePrincipal@4667924(admin)org.jboss.security.SimpleGroup@32473751(Roles(members:Admin,Authenticated)),credential.class=java.lang.String@24659469,expirationTime=1163173710228]
          2006-11-10 20:52:47,650 TRACE [org.jboss.security.plugins.JaasSecurityManager.portal] Begin validateCache, info=org.jboss.security.plugins.JaasSecurityManager$DomainInfo@17e9b52[Subject(22467608).principals=org.jboss.security.SimplePrincipal@4667924(admin)org.jboss.security.SimpleGroup@32473751(Roles(members:Admin,Authenticated)),credential.class=java.lang.String@24659469,expirationTime=1163173710228];credential.class=java.lang.String@24659469
          2006-11-10 20:52:47,650 TRACE [org.jboss.security.plugins.JaasSecurityManager.portal] End validateCache, isValid=true
          2006-11-10 20:52:47,650 TRACE [org.jboss.security.plugins.JaasSecurityManager.portal] End isValid, true
          2006-11-10 20:52:47,650 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] User: admin is authenticated
          2006-11-10 20:52:47,666 TRACE [org.jboss.security.SecurityAssociation] pushSubjectContext, subject=Subject:
          Principal: admin
          Principal: Roles(members:Admin,Authenticated)
          , sc=org.jboss.security.SecurityAssociation$SubjectContext@17e32c7{principal=admin,subject=3659986}
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1163172167666 sessioncount 3
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1163172167666 sessioncount 3
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1163172167666 sessioncount 0
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1163172167666 sessioncount 0
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0
          2006-11-10 20:52:47,666 TRACE [org.jboss.security.plugins.JaasSecurityManager.portal] getPrincipal, cache info: org.jboss.security.plugins.JaasSecurityManager$DomainInfo@17e9b52[Subject(22467608).principals=org.jboss.security.SimplePrincipal@4667924(admin)org.jboss.security.SimpleGroup@32473751(Roles(members:Admin,Authenticated)),credential.class=java.lang.String@24659469,expirationTime=1163173710228]
          2006-11-10 20:52:47,666 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] Mapped from input principal: adminto: admin
          2006-11-10 20:52:47,666 TRACE [org.jboss.security.SecurityAssociation] getSubject, sc=org.jboss.security.SecurityAssociation$SubjectContext@17e32c7{principal=admin,subject=3659986}
          2006-11-10 20:52:47,666 TRACE [org.jboss.security.plugins.JaasSecurityManager.portal] getUserRoles, subject: Subject:
          Principal: admin
          Principal: Roles(members:Admin,Authenticated)

          2006-11-10 20:52:47,666 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] End authenticate, principal=GenericPrincipal[admin(Admin,Authenticated,)]
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.authenticator.FormAuthenticator] Authentication of 'admin' was successful
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.authenticator.FormAuthenticator] Redirecting to original 'null'
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Failed authenticate() test ??/portal/j_security_check
          2006-11-10 20:52:47,666 TRACE [org.jboss.security.SecurityAssociation] clear, server=true
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1163172167666 sessioncount 0
          2006-11-10 20:52:47,666 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0

          • 2. Re: Jboss Portal Integration with OpenSSO
            Anil Saldanha Master

            You do not redirect to "j_securitycheck" directly. You should be trying to access a resource and the container will redirect you to that. Then you pick up the redirect and then plugin your userid/cred.