https://github.com/qwigo/warrant-lite
Python library for process SRP requests for AWS Cognito
https://github.com/qwigo/warrant-lite
aws-cognito python-library warrant warrant-lite
Last synced: 3 months ago
JSON representation
Python library for process SRP requests for AWS Cognito
- Host: GitHub
- URL: https://github.com/qwigo/warrant-lite
- Owner: qwigo
- License: apache-2.0
- Created: 2018-05-02T19:05:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T07:17:19.000Z (over 5 years ago)
- Last Synced: 2025-10-29T15:46:46.238Z (7 months ago)
- Topics: aws-cognito, python-library, warrant, warrant-lite
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 14
- Watchers: 3
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# warrant-lite
Small Python library for process SRP requests for AWS Cognito. This library was initially included in the [Warrant](https://www.github.com/capless/warrant) library. We decided to separate it because not all projects and workfows need all of the helper classes and functions in Warrant.
## Install
```python
pip install warrant-lite
```
## Usage
```python
from warrant_lite import WarrantLite
wl = WarrantLite(username='username', password='password',
pool_id='pool_id',client_id='client_id',
client_secret='client_secret')
tokens = wl.authenticate_user() #client is an optional (keyword) argument
#Verify Tokens
wl.verify_token(tokens['AuthenticationResult']['AccessToken'], 'access_token', 'access') #Access Token example
```