GoogleIdpUtils class
Utility functions for the Google identity provider.
These functions can be used to compose custom authentication and administration flows if needed.
But for most cases, the methods exposed by GoogleIdp and GoogleIdpAdmin should be sufficient.
Constructors
- GoogleIdpUtils({required GoogleIdpConfig config, required AuthUsers authUsers})
- Creates a new instance of GoogleIdpUtils.
Properties
- config → GoogleIdpConfig
-
Configuration for the Google identity provider.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
authenticate(
Session session, {required String idToken, required String? accessToken, required Transaction? transaction}) → Future< GoogleAuthSuccess> - Authenticates a user using an access token.
-
fetchAccountDetails(
Session session, {required String idToken, required String? accessToken}) → Future< GoogleAccountDetails> -
Returns the account details for the given
accessToken. -
linkGoogleAuthentication(
Session session, {required UuidValue authUserId, required GoogleAccountDetails accountDetails, Transaction? transaction}) → Future< GoogleAccount> -
Adds a Google authentication to the given
authUserId. -
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