Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MockMvc Test Support #22

Open
rwinch opened this issue Apr 20, 2018 · 1 comment
Open

MockMvc Test Support #22

rwinch opened this issue Apr 20, 2018 · 1 comment

Comments

@rwinch
Copy link
Collaborator

rwinch commented Apr 20, 2018

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

@jzheaux
Copy link
Owner

jzheaux commented May 30, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants