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

Uploaded Source

Built Distribution

loginid-0.0.4-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: loginid-0.0.4.tar.gz
  • Upload date:
  • Size: 9.2 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.4.tar.gz
Algorithm Hash digest
SHA256 e900942fc4105a9b81657a873ac65c99599ac00497281588f7e2de2546146531
MD5 2b2aa5ae68dd30c32871d8dea2ba7f70
BLAKE2b-256 f9feff141d8f9784a34a6d7cab0e2e776adbbe9373f42a1e554b2b11f6f12b42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: loginid-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 410cf4db7c8640b6b5eb4f71d515a78aff47eabd1fc4baae92dc3f40be83ab57
MD5 5979efe96324fc243fc92291fe2654eb
BLAKE2b-256 7d33f52f8b72511058437ab4e7d19f7f1f4e20426024718157121c4765f33dd4

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