AppAuthClient class

Auth client that uses FlutterAppAuth for handling authentication.

Inheritance

Constructors

AppAuthClient({required FlutterAppAuth appAuth, required String clientId, required String? clientSecret, required String issuer, required String redirectUrl, required String postLogoutRedirectUrl, required String authorizeUrl, required String tokenUrl, required String logoutUrl, required List<String> scopes})

Properties

appAuth FlutterAppAuth
final
authorizeUrl String
final
clientId String
final
clientSecret String?
final
hashCode int
The hash code for this object.
no setterinherited
issuer String
final
logoutUrl String
final
postLogoutRedirectUrl String
final
redirectUrl String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>
final
serviceConfig AuthorizationServiceConfiguration
latefinal
tokenUrl String
final

Methods

ensureUpdatedToken(AuthUser<OAuthToken> user) Future<AuthUser<OAuthToken>?>
Ensure that the given user has an updated token. Must return a user with a new token if the current user's token has expired.
override
logIn({String? email}) Future<AuthUser<OAuthToken>?>
Log in to a service and return authenticated user data
override
logOut(AuthUser<OAuthToken> user) Future<void>
Log the given user out of a service
override
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