JwtLocation class final
Specifies a location to extract JWT from an API request.
- Inheritance
-
- Object
- ProtoMessage
- JwtLocation
Constructors
- JwtLocation({String? header, String? query, String? cookie, String valuePrefix = ''})
- JwtLocation.fromJson(Object? j)
-
factory
Properties
-
Specifies cookie name to extract JWT token.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → String?
-
Specifies HTTP header name to extract JWT token.
final
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - query → String?
-
Specifies URL query parameter name to extract JWT token.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- valuePrefix → String
-
The value prefix. The value format is "value_prefix{token}"
Only applies to "in" header type. Must be empty for "in" query type.
If not empty, the header value has to match (case sensitive) this prefix.
If not matched, JWT will not be extracted. If matched, JWT will be
extracted after the prefix is removed.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String