Skip to main content

Interface SDK for LoginID infrastructure

Project description

LoginID Python SDK

About

The server SDK to connect with LoginID's infrastructure

Installation

  1. Install from GitHub:
git clone git@github.com:loginid1/python-sdk.git
cd python-sdk

pip install -e .
  1. Install with pip
pip install loginid

Quick start

Once the package is installed, you can import the package and connect to LoginID's backend

from loginid import LoginID, LoginIdManagement

lApplication = LoginID(CLIENT_ID, PRIVATE_KEY)
lManagement = LoginIdManagement(MANAGEMNET_CLIENT_ID, MANAGEMENT_PRIVATE_KEY)

# verify a JWT token
token = "some_JWT_token" 
print(lApplication.verifyToken(token, USERNAME))

# extract user ID with management
print(lManagement.getUserId(USERNAME))

Refer to our documentations at https://docs.loginid.io/Server-SDKs/Python/python-get-started for more details.

Tell us how we’re doing

Have our solution in production? Tell us about your site on marketing@loginid.io and we’ll post on our social channels!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loginid-0.0.3.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

loginid-0.0.3-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page