Wednesday 15 June 2011

spring - Grails, SpringSecurity - disable redirect if not loged -



spring - Grails, SpringSecurity - disable redirect if not loged -

how can configure grails not redirect person/user login page if seek acces secure resource. want send 401 status error insed of redirect homepage.

what want configure authenticationentrypoint, can done in spring/resources.groovy. having difficulty finding notation in spring security core plugin documentation, here's jira ticket give-and-take references it:

https://github.com/alvarosanchez/grails-spring-security-rest/issues/51

in 1 of our projects, wanted send 403 response, added line resources.groovy:

authenticationentrypoint(org.springframework.security.web.authentication.http403forbiddenentrypoint)

hope helps.

spring grails spring-security

No comments:

Post a Comment