REST Policy Decision Point (PDP) client for Python-based components
Project description
aiSSEMBLE™ Foundation Policy Decision Point Python Client
This module provides a client for authorizing a jwt, action and resource
The following tasks will help you add authentication to your module.
- Example usage
- Add the following to your code
# The url points to your policy decision point base # For example http://localhost:8080/api/pdp pdp_client = PDPClient(auth_config.pdp_host_url()) decision = pdp_client.authorize(your_jwt_string, None, 'some-action') if 'PERMIT' == decision: print('User is authorized to access XYZ') else: raise AissembleSecurityException('User is not authorized')
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
Close
Hashes for aissemble_foundation_pdp_client_python-1.9.0rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f841866b6fe778dd78966dbc2b6e01694eb91848677ef5f5d47a27acb83dadb |
|
MD5 | 466ca57c5698f9cfc76a6ba830090797 |
|
BLAKE2b-256 | 51d05f7b3c98c90b0c3fe1c35ed8d4d134d2d470941c3b832d732403697a8fdf |
Close
Hashes for aissemble_foundation_pdp_client_python-1.9.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c66d68f86ea3d67ca8b39d105584d1585749a7318352b47543671a809e41bfd9 |
|
MD5 | ed0a7a396c481ddc9e0a340ca741ce1c |
|
BLAKE2b-256 | ce115dc547bfd25a891a888468823488c04630577a58583a74c0e83ed9a0c1fa |