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

Uploaded Source

Built Distribution

loginid-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: loginid-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 c573927b4a653e02970245619b1ab4b8c34f68f7e5ff7544ed32d49c3e3eee2b
MD5 cc08df1585e4de6ce0d5508dd40cee30
BLAKE2b-256 83259cb581b6651b43faa65f1af4d863c57771439a4252a3373a00b8e92b94dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: loginid-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2b8d58665678593068f95e60ae3fca7622aa44ae53b115f50586c39e858c71a
MD5 18ab258c1a838f2771a089d19670b2c4
BLAKE2b-256 097edd7df2bffa0f55e08a6d45049ddfdf7716b7b4ce53c4a7c8c0dc8e65ae71

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