OAuthProvider class

Provider for OAuth (OIDC) authentication.

This class allows configuring custom OAuth providers with scopes and parameters.

Inheritance

Constructors

OAuthProvider(String providerId)
Constructs an OAuthProvider.

Properties

hashCode → int
The hash code for this object.
no setterinherited
parameters → Map<String, String>
Gets the custom parameters.
no setter
providerId → String
The provider ID.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scopes → List<String>
Gets the scopes.
no setter

Methods

addScope(String scope) → OAuthProvider
Adds a scope to the provider.
credential({String? accessToken, String? secret, String? idToken, String? rawNonce, String? signInMethod}) → OAuthCredential
Creates an OAuthCredential.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCustomParameters(Map<String, String> customParameters) → OAuthProvider
Sets custom parameters for the provider.
setScopes(List<String> scopes) → OAuthProvider
Sets the scopes for the provider.
toString() → String
Returns a string representation of the provider.
inherited

Operators

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