authenticateUserImplicitly
You can use implicit authentication to authenticate users based on their client credentials. This means you can assume the user has successfully completed the registration process in the past. After authenticating implicitly, you can fetch resources which require implicit authentication. Implicit authentication requires no user interaction like asking for their PIN or Fingerprint.
Future<String> authenticateUserImplicitly(``String profileId, List<String>? scopes)
Onegini.instance.userClient.authenticateUserImplicitly
- Used to authenticate a user implicitly
- Returns the userProfileId that was used for the authentication on success
- Thows a PlatformException on error
- Takes the following arguments:
Property | Default | Description |
---|---|---|
profileId | A profile ID created when the user profile is registered | |
scopes | resgistration scopes | An array of scopes the user will authenticate with (optional) |
Example code: