AzureB2C class

Azure AD B2C protocol provider.

This static class permits to:

  • Init a proper AzureB2C provider using a native MSAL implementation.
  • Trigger, interactively or silently, B2C policies (user-flows) (e.g. sing-up/sing-in users, reset password, or modify information)
  • Sign-out users (i.e. erases completelly associated user's information, id-token, ecc).

Constructors

AzureB2C()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

getAccessToken(String subject) Future<B2CAccessToken?>
Returns subject's stored access-token.
getConfiguration() Future<B2CConfiguration?>
Get the provider configuration (i.e. a compact representation, NOT the full MSAL configuration).
getSubjects() Future<List<String>?>
Returns a list of stored subjects.
getUserInfo(String subject) Future<B2CUserInfo?>
Returns subject's stored information.
handleRedirectFuture() Future
This method permits to handle scenarios in which after the policy is triggered the application is reloaded (e.g. web if redirect mode is selected).
init(String configFileName) Future<String>
Init B2C application. It look for existing accounts and retrieves information.
policyTriggerInteractive(String policyName, List<String> scopes, String? loginHint) Future<String>
Runs user flow interactively.
policyTriggerSilently(String subject, String policyName, List<String> scopes) Future<String>
Run user flow silently using stored refresh token.
registerCallback(B2COperationSource source, AzureB2CCallback callback) → void
Register a callback to manage result of AzureB2C asynchronous operations.
signOut(String subject) Future<String>
Sign out user and erases associated tokens.
unregisterCallback(B2COperationSource source, AzureB2CCallback callback) → void
Unregister a callback to manage result of AzureB2C asynchronous operations.