Results 1 to 3 of 3

Thread: Authentication with a stored procedure

  1. #1
    Join Date
    Mar 2008
    Posts
    3

    Default Authentication with a stored procedure

    I am new to Spring and acegi and we need to develop an application that authenticates against a stored procedure that already exists. Can we achieve this using acegi or should I look for something else to do the authentication?

    any code samples will be very helpful.

  2. #2
    Join Date
    Feb 2007
    Posts
    291

    Default

    You can provide your own customer userDetails which can use hibernate.
    Code:
    public myUsersService implements UserDetailsService
    {
       private UsersDao userDao;  // has a function which calls by store procedure. 
    
       // ... getter and setter.
           
    }

    Code:
    <bean id="userDetailsSerivice" class="myPackage.myService.myUsersService"/>
    
    <bean id="daoAuthenticationProvider"         class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
      <property name="userDetailsService" ref="userDetailsService"/>
      <property name="saltSource" ref="saltSource"/>
      <property name="passwordEncoder" ref bean="passwordEncoder"/>
    </bean>
    http://www.acegisecurity.org/acegi-s...lsService.html

  3. #3
    Join Date
    Mar 2008
    Posts
    3

    Default

    we are not going to use hibernate but toplink JPA
    Last edited by nick24; Mar 24th, 2008 at 02:55 PM.

Posting Permissions

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