spring-security-oauth2-resource-server icon indicating copy to clipboard operation
spring-security-oauth2-resource-server copied to clipboard

MockMvc Test Support

Open rwinch opened this issue 7 years ago • 1 comments

I'm not sure exactly what we will need for this, but we should provide MockMvc support. One thing that is likely needed is the ability to easily create Authentication objects

rwinch avatar Apr 20 '18 17:04 rwinch

What has been added so far is a set of request post processors for adding the bearer token to the Authorization header: https://github.com/jzheaux/spring-security-oauth2-resource-server/blob/master/samples/boot/oauth2/utilities/src/main/java/support/ResourceServerMockMvcRequestPostProcessors.java

jzheaux avatar May 30 '18 18:05 jzheaux