AuthenticationService class
The authentication service handles all the logic of requesting auth token from the Quickbook APIs.
Constructors
Properties
-
final
- clientId → String
-
final
- clientSecret → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- revocationEndpoint → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenEndpoint → String
-
final
Methods
-
getAuthorizationPageUrl(
{required List< Scope> scopes, required String redirectUrl, required String state}) → String - Returns an authorization URL to be used in a web for to allow the user to authorize the application.
-
getAuthToken(
{required String code, required String redirectUrl, required String realmId}) → Future< TokenResponse> - Obtains the access token from the authorization code.
-
getCachedRealmId(
) → String? - Returns the realm ID that was last used for a token.
-
getCachedToken(
) → TokenResponse? - Returns the cached token if available
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshToken(
{String refreshToken = ""}) → Future< TokenResponse> - Refreshes the authorization token.
-
setCachedRealmId(
{String? realmId}) → void - Sets the cached realmId useful. When refreshing a token this can be used to also load the realmId
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited