AuthorizerInterface class abstract

Implemented types
Implementers

Constructors

AuthorizerInterface()

Properties

authStates Stream<AuthState>
Returns the stream of authorization states.
no setter
currentState AuthState
The current authorization state.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorize({String? language, String? countryCode}) Future<String>
Initiates the authorization code flow.
exchange(Map<String, String> parameters) Future<Client>
Performs the second part of the authorization code flow, exhanging the parameters retrieved via the WebView with the OAuth server for an access and refresh token.
init() Future<void>
Initializes the SDK. Must be called before performing any activities.
isPinning(String host) bool
Returns true if the repository is currently pinning for host.
inherited
launchUrl(String url) Future<void>
Launches the given URL.
login({String? language, String? countryCode}) Future<void>
Performs the full two-step OAuth process.
logout({bool deinit = false}) Future<void>
Logs out the current user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pinCert(Certificate certificate) → void
Creates a strict pinning to the given certificate for a particular host.
inherited
refreshAuthState() Future<void>
Pull the latest auth state from the keychain. If, for example, an app extension or another window changed it, we may not have the latest.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited