Created
June 6, 2013 17:28
-
-
Save eogiles/5723287 to your computer and use it in GitHub Desktop.
MockRequestHeaderAuthenticationFilter groovy class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.test.util | |
import org.springframework.security.web.authentication.preauth.RequestHeaderAuthenticationFilter | |
class MockRequestHeaderAuthenticationFilter extends RequestHeaderAuthenticationFilter { | |
String mockPrincipal | |
@Override | |
protected Object getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest request) { | |
mockPrincipal | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment