Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 842 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 842 Bytes

aether_passport

Aether Passport package project.

Getting Started

Example

      var tokenResponse = await Passport.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 Passport.logout(
        uri: Uri.parse('http://localhost:8080/auth/realms/aether-passport'),
        idTokenString: tokenRepoponse, //mobile only
        redirectString: base.toString(), //web only
      );

For Web:

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