AuthenticationMode class abstract

This is a bearer authentication mode which adds or does not add a header ("Authorization", "Bearer $Token") to each online request of the module the object is added to.

The token (if used) can be provided or is retrieved via key/secret from a dedicated backend.

Constructors

AuthenticationMode()

Properties

hashCode → int
The hash code for this object.
no setterinherited
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

Static Methods

withExternal() AuthenticationMode
Assumes the authentication is provided by the client.
withKeySecret(String accessKeyId, String accessKeySecret) AuthenticationMode
SDK will authenticate with access key id access key secret to obtain authentication token.
withToken(String accessToken) AuthenticationMode
SDK will pass access token as a Bearer.
withTokenProvider(AuthenticationModeAccessTokenProvider tokenProvider) AuthenticationMode
SDK will use access token provider to retrieve access token.