3 Replies Latest reply on Jul 17, 2008 8:46 AM by freedom2k6

    Identity in jboss seam

    freedom2k6

      hai friends...
       
         I am new to jboss seam..
           
          I am doing the application that has two login and logout in same application..After main login screen i have another screen from where i can login to another screen...
       
        How can i use the identity class to do it...
       
        please help me...
        shashi 

        • 1. Re: Identity in jboss seam
          thejavafreak

          You need to define to Identity instance in the components.xml and inject it into your Login component.

          • 2. Re: Identity in jboss seam
            thejavafreak

            I meant two Identity instance.

            • 3. Re: Identity in jboss seam
              freedom2k6

              1.I have two login and logout in same web applications.
               
                The first screen has username and password where we can login into the web application.
                After login i have a link called(Admin) from where i can login to administration screen..
                and create users and logout from administration.
              Finally i can logout from the main screen where entered username and password to login into web application.

              how can i use the same Identity  build in class to do authetication..
              (Identity identity = Identity.instance();)



              2.I have a java object call saasAdmin it has following fields..

                   private String userName;
                   private String firstName;
                   private String lastName;
                   private String encryptedUserPassword;
                   private String email
                      ..... etc

              (or)
                I there any way to implement authetication (login and logout) without using ... Identity build in class..


               

              1.Currently i am doing getting the username password if exists.. putting object(saasAdmin) into session...


                how to remove the invalidate session in jboss seam.. [I want to remove the (saasAdmin) object from session. ]

              please help me...