JwtRequestPostProcessor class final

The request post-processor jwt returns; its methods change the token's claims and authorities.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorities(List<String> authorities) → JwtRequestPostProcessor
Sets the authorities by their full names, instead of those derived from the scope claim.
claim(String name, Object? value) → JwtRequestPostProcessor
Sets the claim name to value, replacing the default one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postProcessRequest(MockServerHttpRequest request) → MockServerHttpRequest
Returns the request to perform instead of request; usually request itself after changing its headers, cookies, attributes or principal.
subject(String subject) → JwtRequestPostProcessor
Sets the sub claim, which is also the user's name.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited