MastodonOAuth2Client class abstract
This client authenticates according to OAuth 2.0
, which
is supported by Mastodon
.
To authenticate to a specific Mastodon instance
and obtain
an access token
, run executeAuthCodeFlow.
Constructors
- MastodonOAuth2Client({required String instance, required String clientId, required String clientSecret, required String redirectUri, required String customUriScheme})
-
Returns the new instance of MastodonOAuth2Client.
factory
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
-
executeAuthCodeFlow(
{required List< Scope> scopes, bool forceLogin = false}) → Future<OAuthResponse> -
Performs the authentication process according to
OAuth 2.0
and outputs theMastodon authentication form
. -
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