Results 1 to 2 of 2

Thread: Security Config

  1. #1
    Join Date
    Oct 2011
    Location
    Chennai
    Posts
    7

    Default Security Config

    In our application we have two different user tables called seeker and referrer. These two tables have different fields but but Username and Password fields are common. I have login controller in which i will query the corresponding table based on the user type(seeker or referrer) and user will be taken to the corresponding homepage. If the user is found in the user table, the user object will be set in the session.


    For seeker, session.setAttribute("SEEKER","userobj");
    For referrer,session.setAttribute("REFERRER","userobj" );

    I would like to implement spring security3 with hibernate.

    Am not sure how to configure my login controller for authentication in security config file.

    Could you please help me on this.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,833

    Default

    By implement spring security3 with hibernate I assume you are specifically meaning login. To do this you can implement UserDetailsService or AuthenticationProvider and use hibernate in your implementation.
    Rob Winch
    Twitter @rob_winch
    Spring Security Lead
    Spring by Pivotal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •