Represents an OAuth 2.0 authorization code.

AuthStorage and AuthServer will exchange OAuth 2.0 authorization codes through instances of this type.

See the aqueduct/managed_auth library for a concrete implementation of this type.

Constructors

AuthCode()

Properties

clientID → String

The client ID the authorization code was issued under.

read / write
code → String

The actual one-time code used to exchange for tokens.

read / write
expirationDate → DateTime

When this authorization code expires, recommended for 10 minutes after issue date.

read / write
hasBeenExchanged → bool

Whether or not this authorization code has already been exchanged for a token.

read / write
isExpired → bool

Whether or not this code has expired yet, according to its expirationDate.

read-only
issueDate → DateTime

The timestamp this authorization code was issued on.

read / write
requestedScopes → List<AuthScope>

Scopes the exchanged token will have.

read / write
resourceOwnerIdentifier → dynamic

The identifier of the resource owner.

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

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