Groovy Documentation

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.


Property Summary
RestAuthenticationTokenJsonRenderer renderer

 
Constructor Summary
RestAuthenticationSuccessHandler()

 
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()
 

Property Detail

renderer

RestAuthenticationTokenJsonRenderer renderer


 
Constructor Detail

RestAuthenticationSuccessHandler

RestAuthenticationSuccessHandler()


 
Method Detail

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 authentication
response - the response
authentication - the Authentication object which was created during the authentication process.


 

Groovy Documentation