Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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 username,role as authorities from users where users.username=?" />
- </authentication-provider>
- <authentication-provider>
- <user-service>
- <user name="faisal" password="faisal"
- authorities="ROLE_ADMIN,ROLE_FREE_USER,ROLE_PREMIUM_USER" />
- <user name="user1" password="user1" authorities="ROLE_FREE_USER" />
- <user name="user2" password="user2" authorities="ROLE_PREMIUM_USER" />
- </user-service>
- </authentication-provider>
- </authentication-manager>
Add Comment
Please, Sign In to add comment