Authentication class

Authentication information.

Constructors

Authentication.anonymous()
Creates an Authentication instance that has no authentication.
const
Authentication.basic(String? username, String? password)
Creates an Authentication instance that uses a username and password.
const
Authentication.bearerToken(String bearerToken)
Creates an Authentication instance that uses the specified bearerToken.
const
Authentication.withToken(String? token)
Creates an Authentication instance that uses the specified OAuth2 token.
const

Properties

bearerToken String?
final
hashCode int
The hash code for this object.
no setterinherited
isAnonymous bool
Anonymous Authentication Flag
no setter
isBasic bool
Basic Authentication Flag
no setter
isBearer bool
no setter
isToken bool
Token Authentication Flag
no setter
password String?
GitHub Password
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String?
OAuth2 Token
final
username String?
GitHub Username
final

Methods

authorizationHeaderValue() String?
Returns a value for the Authorization HTTP request header or null if isAnonymous is true.
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