Closed
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))
// ...