You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mock Jwt Support should accept a fully-configured Jwt #6896
Activity
sandmannn commentedon May 22, 2019
Hi, I would like to pick this up
jzheaux commentedon May 22, 2019
Thanks, @sandmannn! It's yours.
jzheaux commentedon May 29, 2019
@sandmannn how are things coming? Do you have any questions?
sandmannn commentedon May 30, 2019
I think servlet and reactive can be addressed in different PRs. Lets start iterating on servlet part in this PR #6923
What would be the best place to put tests for it? Up to now I found only https://github.com/sandmannn/spring-security/blob/d0f5b428847c1050d38da7d2af98eb2cda6a9b9e/samples/boot/oauth2resourceserver/src/test/java/sample/OAuth2ResourceServerControllerTests.java where the existing jwt() calls are used in
mockMvc.perform(get(....).with(jwt()))style, as you specified in original post.jzheaux commentedon May 30, 2019
I'd recommend placing them in https://github.com/spring-projects/spring-security/blob/master/test/src/test/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessorsJwtTests.java
Extended testing api for JWT
Added jwt injection for reactive test mocks
Extended testing api for JWT
Added jwt injection for reactive test mocks