com.odobo.grails.plugin.springsecurity.rest
[Groovy] Class RestAuthenticationSuccessHandler
java.lang.Object
com.odobo.grails.plugin.springsecurity.rest.RestAuthenticationSuccessHandler
- All Implemented Interfaces:
- org.springframework.security.web.authentication.AuthenticationSuccessHandler
class RestAuthenticationSuccessHandler
Generates a JSON response using a RestAuthenticationTokenJsonRenderer.
Method Summary |
void
|
onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
Called when a user has been successfully authenticated.
|
Methods inherited from class java.lang.Object
|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
renderer
RestAuthenticationTokenJsonRenderer renderer
-
RestAuthenticationSuccessHandler
RestAuthenticationSuccessHandler()
-
onAuthenticationSuccess
void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
- Called when a user has been successfully authenticated.
- Parameters:
request
- the request which caused the successful authenticationresponse
- the responseauthentication
- the Authentication object which was created during the authentication process.
Groovy Documentation