Fabric Control Framework
Project description
Fabric Credential Manager Client
This is Fabric Credential Manager API
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.1
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/fabric-testbed/fabric_credmgr.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/fabric-testbed/fabric_credmgr.git
)
Then import the package:
import fabric_cm.credmgr.credmgr_proxy
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
from fabric_cm.credmgr.credmgr_proxy import CredmgrProxy
Getting Started
Please follow the installation procedure and then run the following:
from fabric_cm.credmgr.credmgr_proxy import CredmgrProxy
from fabric_cm.credmgr.swagger_client.rest import ApiException
credmgr_proxy = CredmgrProxy(credmgr_host="https://dev-2.fabric-testbed.net/")
try:
version = credmgr_proxy.version_get()
print(version)
except ApiException as e:
print("Exception when calling CredmgrProxy->version_get: %s\n" % e)
try:
version = credmgr_proxy.certs_get()
print(version)
except ApiException as e:
print("Exception when calling CredmgrProxy->certs_get: %s\n" % e)
try:
version = credmgr_proxy.refresh(project_id='12345', scope='all', refresh_token='TOKEN')
print(version)
except ApiException as e:
print("Exception when calling CredmgrProxy->refresh: %s\n" % e)
try:
version = credmgr_proxy.revoke(refresh_token='TOKEN')
print(version)
except ApiException as e:
print("Exception when calling CredmgrProxy->revoke: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://127.0.0.1:7000/credmgr/
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | certs_get | GET /certs | Return Public Keys to verify signature of the tokens |
TokensApi | tokens_create_post | POST /tokens/create | Generate tokens for an user |
TokensApi | tokens_get | GET /tokens | Get tokens |
TokensApi | tokens_refresh_post | POST /tokens/refresh | Refresh tokens for an user |
TokensApi | tokens_revoke_list_get | GET /tokens/revoke_list | Get token revoke list i.e. list of revoked identity token hashes |
TokensApi | tokens_revoke_post | POST /tokens/revoke | Revoke a token for an user |
TokensApi | tokens_revokes_post | POST /tokens/revokes | Revoke a token |
TokensApi | tokens_validate_post | POST /tokens/validate | Validate an identity token issued by Credential Manager |
VersionApi | version_get | GET /version | Version |
Documentation For Models
- DecodedToken
- Jwks
- JwksKeys
- Request
- RevokeList
- Status200OkNoContent
- Status200OkNoContentData
- Status200OkPaginated
- Status200OkSingle
- Status400BadRequest
- Status400BadRequestErrors
- Status401Unauthorized
- Status401UnauthorizedErrors
- Status403Forbidden
- Status403ForbiddenErrors
- Status404NotFound
- Status404NotFoundErrors
- Status500InternalServerError
- Status500InternalServerErrorErrors
- Token
- TokenPost
- Tokens
- Version
- VersionData
Documentation For Authorization
All endpoints do not require authorization.
Author
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
Hashes for fabric-credmgr-client-1.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9feab1b2a4b4e5571221e44bfdf41a48a965a1f5908bb0a1db1bdeabec9aa1 |
|
MD5 | ce37d5688e22ec16631f3968844a72b2 |
|
BLAKE2b-256 | a074e8f927ef68c5f88e1a13cd7a54c3a09e2046215ad9707e37713ede32eb12 |
Hashes for fabric_credmgr_client-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22b85b178e3ca80dceec0045784464a08b53cb0c8e3559472b4d12dd1b0e813b |
|
MD5 | ff8c0a52d1c2f7addaa6cf3becf39c6d |
|
BLAKE2b-256 | 725b2a822a86bce19bed9d94779f1fbea404c9376fc46132ad1501d35c1851b6 |