Announcement Announcement Module
Collapse
No announcement yet.
please help me regarding the Spring Security authentication-manager Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • please help me regarding the Spring Security authentication-manager

    Code:
    <authentication-manager>
    		<authentication-provider>
    			<jdbc-user-service data-source-ref="dataSource"
    				users-by-username-query="
    			 select username,password, enabled from users where USERNAME=?"
    				authorities-by-username-query="
     		     select u.username, ur.authority from users u, authorities ur 
    		      where u.user_id = ur.user_id and u.username =? " />
    		</authentication-provider>
    	</authentication-manager>
    in spring security can i create with table name xyz instead of table name users.

  • #2
    yes you can create also you can create your own "user service" for customize data fetching purpose

    Comment


    • #3
      rohan can you help me how i can achieve it.. i am new to spring security . please guide me..

      Thanks
      Manish

      Comment


      • #4
        http://www.codercorp.com/blog/spring...-security.html

        Comment


        • #5
          Implement UserDetailsService interface which will return of type "UserDetails"(which represent actual user data/details)

          and inject YourCustomUserDetailsService into AuthenticationProvider

          Comment


          • #6
            thanks adi and rohan

            Manish

            Comment

            Working...
            X