REST Policy Decision Point (PDP) client for Python-based components
Project description
Python security 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 AiopsSecurityException('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.7.0rc3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bdb01b744b611f5818348f7238a6e1ba1bd57e603b74e6b33ca4b73be6b4734 |
|
MD5 | adfd6bbf5e52cf6b40fa1aa123c1108a |
|
BLAKE2b-256 | b5e9d37e975cd4e7856d8ffa4fbde21ca122efb047e97c1891ee77158dc253f1 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.7.0rc3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad69d3a5e7bc27a00504cff59399b6725cc275a4943151ad2bc76ecbe4142e9 |
|
MD5 | 5c0f29994fc566a7627271bbbbb55ca9 |
|
BLAKE2b-256 | bdb02df9e5f1d8433d0acaf96e8baa9707e46dd7cd46c9009b9faaccbb49531a |