-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancementA general enhancement
Milestone
Description
According to #7118, when using jwt()
(Servlet) or mockJwt()
(WebFlux) test support, a tester must also provide a CSRF token.
This is because the CSRF token is lifted when a bearer token header is present in the request.
But, when using jwt()
or mockJwt()
, no bearer token header is provided as it's unnecessary.
In order to align with the expected behavior of resource server endpoints, when jwt()
or mockJwt()
is used, the tester should not also have to supply a CSRF token.
henriquels25
Metadata
Metadata
Assignees
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancementA general enhancement