Announcement Announcement Module
Collapse
No announcement yet.
How do I make role in MySQL? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I make role in MySQL?

    Hi everyone,

    I want to make login and role(acl) system by using Spring Security and MySQL.

    I could make login system in MySQL, but I do not know to make role(acl) system in MySQL.

    below code is in applicationContext-security.xml

    Code:
        	<authentication-provider>
    	    	<password-encoder hash="md5"/>
        		<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, authority from authorities where username = ?"/>
        	</authentication-provider>
    How do I push Class and Method role(acl) to MySQL?

    Thanks,
    Shinya Ozawa

  • #2
    Did you look at the contacts sample application? It has a fully working example of using ACLs. Once you get that working, then try to convert it to MySQL.

    Comment

    Working...
    X