AuthCode class

Represents an OAuth 2.0 authorization code.

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

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

Constructors

AuthCode()

Properties

clientID String?
The client ID the authorization code was issued under.
getter/setter pair
code String?
The actual one-time code used to exchange for tokens.
getter/setter pair
expirationDate DateTime?
When this authorization code expires, recommended for 10 minutes after issue date.
getter/setter pair
hasBeenExchanged bool?
Whether or not this authorization code has already been exchanged for a token.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isExpired bool
Whether or not this code has expired yet, according to its expirationDate.
no setter
issueDate DateTime?
The timestamp this authorization code was issued on.
getter/setter pair
requestedScopes List<AuthScope>?
Scopes the exchanged token will have.
getter/setter pair
resourceOwnerIdentifier String?
The identifier of the resource owner.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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