AuthToken class

Represents an OAuth 2.0 token.

AuthServerDelegate 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.




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.
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 ↔ int
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


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.
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator.