Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

google/identity-toolkit-java-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

Google Identity Toolkit client library for Java

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages