5 Replies Latest reply on Jun 10, 2008 10:01 AM by leonardinius

    Seam 2.1.0.A1 Identity JPA management and Identity.rememberMe

    leonardinius

      Hi, Shane.


      I am escribing JBSEAM-3067 here as suggested.


      The problem so far:



      • Standard usage



      <security:identity remember-me="true" authenticate-method="#{some method}"/>
      


      some method isinvoked unto login action. Seam generated login form/code works in the following way:


         a) identity remember me defaults to the the value set-up in the components file. When user logins/logouts/opens the login fom - then user name is already filled in, only password should be filled in.
         b) closes browser/reopens. Username is still recognized.



      • Identity usage



      Switching to the identity management


          <identity-management:jpa-identity-store 
                name="identityStore"
                account-class="xxx.MemberAccount"/>
           <security:identity remember-me="true"/>
      



      Identity authentication is working quite well. Remember me feature isn't working any more. I suspect this post is about the same problem as well.



      Main question:



      • Do I use identity management correctly?

      • Is any convenient way to configure these things among different strategies?

      • What I do for workaround? Any directions for testing/debugging etc - just to see where the problem lies in. Any suggestions about observers/contexts - just to see that the is the problem... Any suggestions? What info should I additionally provide



      BTW: Sorry for my english.

        • 1. Re: Seam 2.1.0.A1 Identity JPA management and Identity.rememberMe
          leonardinius

          Typos. Should be read as:



          • Standard identity usage

          • Identity management usage

          • 2. Re: Seam 2.1.0.A1 Identity JPA management and Identity.rememberMe
            leonardinius

            Should I reopen JBSEAM-3067 in order to get the response?


            Any suggestions how ro make rememberMe to work with identity management enabled? Configuration glues etc? What should I look in?


            I just don't know the correct direction to look in.


            Tnx in advance for any suggestions/comments/help.

            • 3. Re: Seam 2.1.0.A1 Identity JPA management and Identity.rememberMe
              shane.bryzak

              I'm currently rewriting the remember me functionality, please don't re-open that issue.  You can track the progress here:


              http://jira.jboss.org/jira/browse/JBSEAM-2079

              • 4. Re: Seam 2.1.0.A1 Identity JPA management and Identity.rememberMe
                shane.bryzak

                Ok I've totally rewritten the remember-me feature from scratch.  It would be great if you could check out latest from SVN and give it a try now.

                • 5. Re: Seam 2.1.0.A1 Identity JPA management and Identity.rememberMe
                  leonardinius

                  Hi, Shane.


                  It's wonderful to have such as quick response.
                  At the moment I am trying to run my application with the replaced seam jars, which is not as straightforward I dreamed it would be :)


                  Seam taken from #225 nightly-build


                  The problem now is with components.xml file (NPE during deploy operation)


                      <identity-management:jpa-identity-store 
                                  name="identityStore"
                                  account-class="xxx.xxx.members.MemberAccount"/>
                          
                          <security:identity security-rules="#{securityRules}" remember-me="true"/>
                          <drools:rule-base name="securityRules">
                                  <drools:rule-files>
                                          <value>/security-rules.drl</value>
                                  </drools:rule-files>
                          </drools:rule-base>
                  



                  If commenting out - then deploy operation fails in another place (some other component relies on these).




                  I have noticed that seamspace example changed a lot.


                  ...
                      <security:jpa-identity-store 
                         user-class="org.jboss.seam.example.seamspace.MemberAccount"
                         role-class="org.jboss.seam.example.seamspace.MemberRole"
                         />
                        
                      <security:jpa-permission-store user-permission-class="org.jboss.seam.example.seamspace.AccountPermission"/>
                  
                  ...
                  



                  I just wonder that should be my minimal components.xml file to check/test this feature? As I suppose, documentation updates are not available at the moment.
                  (At the moment I'm trying to use Seam-2.1.A1 sample as basis withouts any ads).


                  Anyway, thanks for any help and suggestions. I think I could wait till 2.1.GA and documentation complete. But in order You have free time to describe nescessary component.xml changes etc.. I could try to test this feature and provide some feedback if any.


                  Once more,
                  Great tnx for such as quick feedback.
                  + Tnx for enabling SNV comment information in JIRA, I could see changes at momentum without of need to dig into rss feeds, svn commits history etc.