faisal786

Untitled

Mar 22nd, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <authentication-manager>
  2. <authentication-provider>
  3. <jdbc-user-service data-source-ref="dataSource"
  4. users-by-username-query="SELECT username,password, enabled from users where username=?"
  5. authorities-by-username-query=" select username,role as authorities from users where users.username=?" />
  6. </authentication-provider>
  7.  
  8. <authentication-provider>
  9. <user-service>
  10. <user name="faisal" password="faisal"
  11. authorities="ROLE_ADMIN,ROLE_FREE_USER,ROLE_PREMIUM_USER" />
  12. <user name="user1" password="user1" authorities="ROLE_FREE_USER" />
  13. <user name="user2" password="user2" authorities="ROLE_PREMIUM_USER" />
  14. </user-service>
  15. </authentication-provider>
  16. </authentication-manager>
Add Comment
Please, Sign In to add comment