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:conduit_core/managed_auth library for a concrete implementation of this type.

Constructors

AuthToken()

Properties

accessToken ↔ String?
The value to be passed as a Bearer Authorization header.
getter/setter pair
clientID ↔ String?
The client ID this token was issued from.
getter/setter pair
expirationDate ↔ DateTime?
The time when this token expires.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isExpired → bool
Whether or not this token is expired by evaluated expirationDate.
no setter
issueDate ↔ DateTime?
The time this token was issued on.
getter/setter pair
refreshToken ↔ String?
The value to be passed for refreshing a token.
getter/setter pair
resourceOwnerIdentifier ↔ int?
The identifier of the resource owner.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scopes ↔ List<AuthScope>?
Scopes this token has access to.
getter/setter pair
type ↔ String?
The type of token, currently only 'bearer' is valid.
getter/setter pair

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 nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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