Overview
Python library for supporting FABRIC System Services. Includes multiple modules:
- jwt_validate - validates JWT against a JWKS endpoint
See test folder for examples of use
Installation
For developing and testing the FIM code itself use editable install (from top-level directory) from python/ folder
(infomodel) $ pip install -e .
As a dependency use PyPi
$ pip install fabric-fss-utils
$ python
>>> from fss_utils.jwt_validate import JWTValidator, ValidateCode
>>> token = "..."
>>> validator = JWTValidator(cert_end_point, audience, datetime.timedelta(minutes=5))
>>> validator.validate_jwt(token)
Testing
Use pytest:
$ pytest test/
Release files for fabric_fss_utils 1.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fabric_fss_utils-1.7.0.tar.gz | 23.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fabric_fss_utils-1.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.1 kB
Release files / fabric_fss_utils-1.7.0.tar.gz
| Download URL | fabric_fss_utils-1.7.0.tar.gz |
|---|---|
| Size | 23.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
482882530b8334e41370ac6742f8a1f161f9deccdceff38fbf18dc9797c60906
|
|
BLAKE2b-256 checksum How to use checksums |
42f270933da803941e7a04d95021674d65536dc781605c96b9f9f365e2b4f3d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Release files / fabric_fss_utils-1.7.0-py3-none-any.whl
| Download URL | fabric_fss_utils-1.7.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8afe47bc202d144a49f4a767ac92dc4d83d7845f0d68825429b10c79dde1eba
|
|
BLAKE2b-256 checksum How to use checksums |
263837f461d19e37bf957744e5fea8be2a76dd23ffd00ade9d3510582ac6924f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|