forked from googlesamples/identity-toolkit-java
-
Notifications
You must be signed in to change notification settings - Fork 0
License
mcduan/identity-toolkit-java
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is Java client library for Google Identity Toolkit services. Sample usage ===================== /* * initialize Gitkit client instance */ GitkitClient gitkitClient = GitkitClient.newBuilder() .setGoogleClientId("your-oauth2-web-client-id-at-Google") .setServiceAccountEmail("your-service-account-email-at-Google-developer-console") .setKeyStream(new FileInputStream("path-to-your-service-account-private-file")) .setWidgetUrl("/gitkit.jsp") .setCookieName("gtoken") .build(); // Verifies a GitkitToken GitkitUser gitkitUser = gitkitClient.validateTokenInRequest(request); // Download all accounts from Google Identity Toolkit Iterator<GitkitUser> userIterator = gitkitClient.getAllUsers(); while (userIterator.hasNext()) { // individual user info is returned in userIterator.next() }
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 100.0%