jwt function
Makes the request as if it carried a valid JWT bearer token: no token is decoded or verified.
The token has the subject user and the scope read (the authority
SCOPE_read), is issued now and expires in 5 minutes, unless changed
with the returned processor's methods. The authorities come from the
default converter, not from the application's jwt.* properties.
MockRequestBuilder(HttpMethod.get, '/api/orders')
..with_(jwt().subject('ada').claim('scope', 'orders:read'));
Spring (Java): jwt().jwt(j -> j.subject("ada")).
Implementation
JwtRequestPostProcessor jwt() => JwtRequestPostProcessor._();