Metadata-Version: 2.1
Name: loginid
Version: 0.1.0
Summary: Interface SDK for LoginID infrastructure
Home-page: https://github.com/loginid1/python-sdk
Author: Quang Hoang
Author-email: quang@loginid.io
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/loginid1/python-sdk/issues
Project-URL: Documentation, https://docs.loginid.io/Server-SDKs/Python/python-get-started
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# 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 .
```
2. 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!

