Skip to content

jasonlaw/aether_passport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

OAuth client based on openid_client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published