Git Product home page Git Product logo

identity-toolkit-python's Introduction

identity-toolkit-python

Demonstrates how to access the Identity Toolkit API with Python

Command Line Tool

The script gitkit_command_tool.py is a useful CLI for interacting with Identity Toolkit while debugging your application. You can easily get information on registered users and delete users so that you can test onboarding flows repeatedly.

Setup

First, install the python dependencies by running:

pip install -r requirements.txt

Next, you will need to configure the following fields in the file gitkit-server-config.json with values from your Google Developers Console project:

  • clientId - the client ID for your web application.
  • serviceAccountEmail - the email address listed for your service account. If your project does not have a service account, you will need to create one.

Next, you will need to download a p12 key for your service account by clicking the Generate new P12 key in the Developers Console. Once downloaded, move it to this folder and rename it private-key.p12.

Usage

Run the script by invoking python gitkit_command_tool.py:

usage: gitkit_command_tool.py [-h] [--id [ID]] [--email [EMAIL]] command

positional arguments:
  command          one of: get, list, insert, delete

optional arguments:
  -h, --help       show this help message and exit
  --id [ID]        id of the user
  --email [EMAIL]  email of the user

identity-toolkit-python's People

Contributors

jin-liu avatar cslink avatar jdgreenberg avatar liujin-google avatar revolutiontech avatar naokigoogle avatar samtstern avatar tjohns avatar dereksalama avatar

Watchers

rosa maria palacios juncosa avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.