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.8.1rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa0364908182452490ceb4977ba1fd06e55c294ac142f4e2f0023b665d859a5c |
|
MD5 | 2f04c95c226f2cc490daacd38f99a65c |
|
BLAKE2b-256 | 8f9e3870f52479923f48c268c80ba02102e4401a2a63844044b4feaa4e69bdee |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.1rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fef79a6e68268d85e71b77838d841b0e31a78dec0cb61442c73040747aa838c |
|
MD5 | 4aa7d8b60617aca18380950ff6df9e80 |
|
BLAKE2b-256 | 1217779440157ee3908a01bb01a0bd93e9fb5c0efd3a28589214c1a5b8e43a1d |