spring - Using simple auth and form based access to controllers -
suppose have grails 2.4.3 application, 1 controller:
@secured(['role_user']) class heycontroller { def dosomething() { render "do something" } def dosomethingelse() { render "do else" } }
i tell underlying spring security framework secure access so:
form based loginhttp://myhost:8080/app/hey/dosomething
basic http authentication http://myhost:8080/app/hey/dosomethingelse
i know it's possible configure access using vanilla spring security using 2 <http>
configuration sections each access pattern in security context configuration file.
therefore, there must way setup spring security via grails right? thanks!
... nevermind facepalm. seems case:
http://grails-plugins.github.io/grails-spring-security-core/guide/authentication.html
i'll mark reply working in practice. thanks!
spring authentication grails spring-security
No comments:
Post a Comment