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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3195481ebb116d08be1f879fe1f5204b337166cea794c2595e7201dbb1dffd2b |
|
MD5 | efffd320341dbea5db389c633f62c525 |
|
BLAKE2b-256 | 832913d5a2f9266ce67b21874901638236529839c10faefcc5032e9672922918 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 617a3e866d6285c985cf44b332b19cdc74222c3b6c8da85a2bd8d83f7c79224c |
|
MD5 | 5664cacd8456fe206fde55fd0eb938b3 |
|
BLAKE2b-256 | 881b99f122196ead4fd45d41e2bf2b18d3579c5633494bfbbf7122320cc44517 |