-
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)in: testAn issue in spring-security-testAn issue in spring-security-testtype: enhancementA general enhancementA general enhancement
Milestone
Description
A tester can configure a mock request with a Jwt
like so:
this.mvc.perform(get("/")
.with(jwt()))
// ...
Or like so:
this.mvc.perform(get("/")
.with(jwt(jwt -> jwt.subject("sub"))))
// ...
It'd be nice to also accept a fully-configured Jwt
:
Jwt jwt = // ...
this.mvc.perform(get("/")
.with(jwt(jwt)))
// ...
Both on the servlet side as well as the reactive side:
Jwt jwt = // ...
this.client
.mutateWith(mockJwt(jwt))
// ...
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)in: testAn issue in spring-security-testAn issue in spring-security-testtype: enhancementA general enhancementA general enhancement