Skip to content

Commit

Permalink
Update README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4mpy authored Nov 24, 2024
1 parent 3e1af4f commit 57733e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Testing access control requires configuring the test security context. The `Moc
- build tests security context by ourself and populate it with stubbed / mocked authentications :cry:
- **use annotations** to do it for us (this is where [spring-addons-oauth2-test](https://github.com/ch4mpy/spring-addons/tree/master/spring-addons-oauth2-test) jumps in) :smiley:

Also, a notable difference between `@MockJwt` and those in `spring-security-test` is that **`spring-security-test ignores the authentication converter defined in the security conf :sob:**.
Also, a notable difference between `@MockJwt` and those in `spring-security-test` is that **`spring-security-test` ignores the authentication converter defined in the security conf :sob:**.

To understand the consequences, let's consider the flow to build the security context in a resource server with a JWT decoder:
1. the JWT Bearer string is decoded, validated, and turned into a `org.springframework.security.oauth2.jwt.Jwt` by a `JwtDecoder`
Expand Down

0 comments on commit 57733e4

Please sign in to comment.