Last updated:
0 purchases
msal4flutter
msal4flutter #
Features #
Unofficial Flutter package for The Microsoft Authentication Library (MSAL).
Currently only device authorization of OAuth 2.0 is supported.It works on Android, iOS, MacOS, Windows, Linux.
Usage #
final client = PublicClient(
clientId: 'f522xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx',
scope: ["Files.ReadWrite"]);
final device = await client.create();
print(device?.userCode);
print(device?.expiresIn);
print(device?.message);
final token = await client.acquireTokenInteractive();
print(token.accessToken);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.