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.

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.2.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

loginid-0.0.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file loginid-0.0.2.tar.gz.

File metadata

  • Download URL: loginid-0.0.2.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

File hashes

Hashes for loginid-0.0.2.tar.gz
Algorithm Hash digest
SHA256 845e8933df35bbc2f8da0dd5ac9728fa3e70b096bb7ad256cb87bdeeded41f6f
MD5 ee72764fdb9db6e6f3518904626daeb6
BLAKE2b-256 c78ad688f4f726ed1cde79607e4395f43c2c7b18c14b0cd3ea576cb203e610e3

See more details on using hashes here.

File details

Details for the file loginid-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: loginid-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

File hashes

Hashes for loginid-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c70687dde7c2ab4b5bc843802035e34b73a8a5a8acd4c691d22795f5942c382d
MD5 7a2553305681fd631a4f7c9892f16b1e
BLAKE2b-256 7cab611220011083c9fad364133112edebe15c940401cc6e14508c173add78fe

See more details on using hashes here.

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