Oauth2Manager class
Constructors
-
Oauth2Manager({required Uri endpoint, required String identifier, required String secret, bool basicAuth = false, required Future<
Client> grantOwnerPassword(Uri endpoint, String identifier, String secret, bool basicAuth, String username, String password, Iterable<String> ? scopes), required Oauth2CredentialsStorage credentialsStorage, Logger? logger})
Properties
- basicAuth → bool
-
final
- credentialsStorage → Oauth2CredentialsStorage
-
final
- endpoint → Uri
-
final
-
grantOwnerPassword
→ Future<
Client> Function(Uri endpoint, String identifier, String secret, bool basicAuth, String username, String password, Iterable<String> ? scopes) -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
final
- logger → Logger?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secret → String
-
final
Methods
-
getAccessToken(
{bool refreshIfExpired = true}) → Future< String?> -
isLoggedIn(
) → Future< bool> -
login(
{required String username, required String password, Iterable< String> ? scopes}) → Future<Credentials> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
{Credentials? credentials}) → Future< Credentials> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited