joserfc-wrapper is a library for easy use of JWT and automatic management of signature keys.
Project description
The joserfc-wrapper
library simplifies the use of JWT and automates the management of signature keys.
Install
pip install joserfc-wrapper
Reason
The main purpose of this wrapper is to simplify the management of signature keys for generating JWT tokens using the joserfc library and adhering to RFC standards. It offers two options for managing signature keys: securely storing generated keys in HashiCorp Vault (default) or storing them on the filesystem (optional). Additionally, it facilitates the use of JWT tokens in projects.
Need a custom solution for storing keys? We've got you covered.
If necessary, a custom object can be created to manage signing keys, including storing them in a database. However, this custom class must be a subclass of the parent AbstractKeyStorage abstract class to implement the necessary methods.
Using a Virtual Environment for joserfc_wrapper
We recommend running joserfc_wrapper in a virtual environment for the following reasons:
-
Project Isolation: A virtual environment isolates this project's dependencies from the rest of your system. This allows you to work with specific library versions required for joserfc_wrapper without the risk of conflicts with other projects.
-
Virtual environments make it easy to manage and track project dependencies, which is crucial for ensuring reproducibility and consistency in development.
-
Using a virtual environment ensures seamless integration and deployment, guaranteeing consistent operation across all development and production environments.
To create a virtual environment for joserfc_wrapper, follow these steps:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# or
pip install joserfc_wrapper
By following these guidelines, you can ensure a smooth and problem-free experience when working with joserfc_wrapper
.
Documentation
License
joserfc (BSD-3)
joserfc_wrapper (MIT)
Contributions to the development of this library are welcome, ideally in the form of a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for joserfc_wrapper-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4a4d704ea0fabb3737dfb1397cbcbdf0eea62b170b96a1bedb347ce33f0677a |
|
MD5 | 5b2adc7d1e6cfd924bef99a11d85c8a9 |
|
BLAKE2b-256 | 85ef5f287c23c0514191b194714b66e3fadd9194e710d14e459593bb7fc3ebe8 |