FABRIC System Service Utilities - JWT and SSH key handling
Project description
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/
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
fabric_fss_utils-1.5.1.tar.gz
(22.2 kB
view hashes)
Built Distribution
Close
Hashes for fabric_fss_utils-1.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 302733288e0627f6f93ec2536511a57d83303006b4887aa2a97fed863f3023af |
|
MD5 | d8a46f6058af2103ef7da205762626ab |
|
BLAKE2b-256 | e3f29a697ac392eb4237b1905eb74a801cf2102f7af6eaaacf7c8457aaafb2e1 |