Represents an OAuth 2.0 token.
AuthStorage and AuthServer will exchange OAuth 2.0 tokens through instances of this type.
See the package:aqueduct/managed_auth
library for a concrete implementation of this type.
Constructors
Properties
- accessToken → String
-
The value to be passed as a Bearer Authorization header.
read / write - clientID → String
-
The client ID this token was issued from.
read / write - expirationDate → DateTime
-
The time when this token expires.
read / write - isExpired → bool
-
Whether or not this token is expired by evaluated
expirationDate
.read-only - issueDate → DateTime
-
The time this token was issued on.
read / write - refreshToken → String
-
The value to be passed for refreshing a token.
read / write - resourceOwnerIdentifier → dynamic
-
The identifier of the resource owner.
read / write - scopes → List<AuthScope>
-
Scopes this token has access to.
read / write - type → String
-
The type of token, currently only 'bearer' is valid.
read / write - hashCode → int
-
The hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
asMap(
) → Map<String, dynamic> -
Emits this instance as a
Map
according to the OAuth 2.0 specification. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited