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
-
Sets the authorities by their full names, instead of those derived
from the
scopeclaim. -
claim(
String name, Object? value) → JwtRequestPostProcessor -
Sets the claim
nametovalue, 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; usuallyrequestitself after changing its headers, cookies, attributes or principal. -
subject(
String subject) → JwtRequestPostProcessor -
Sets the
subclaim, 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