flutter_oauth2_client

Last updated:

0 purchases

flutter_oauth2_client Image
flutter_oauth2_client Images
Add to Cart

Description:

flutter oauth2 client

flutter_oauth2_client #
flutter oauth2 client package project.
Getting Started #
Example
var tokenResponse = await FlutterOAuth2Client.authenticate(
uri: Uri.parse('http://localhost:8080/auth/realms/aether-passport'),
clientId: 'aether-billing',
scopes: ['email', 'profile']);

print(tokenResponse.idTokenString);

//Logout:

Uri base = Uri(
scheme: Uri.base.scheme,
host: Uri.base.host,
port: Uri.base.port,
);

await FlutterOAuth2Client.logout(
uri: Uri.parse('http://localhost:8080/auth/realms/aether-passport'),
idTokenString: tokenRepoponse, //mobile only
redirectString: base.toString(), //web only
);
copied to clipboard
For Web:

Copy callback.html and place inside web root folder.
Copy logout.html and place inside web root folder.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.