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
Metadata
Release files for fabric-credmgr-client 1.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fabric-credmgr-client-1.6.2.tar.gz | 37.8 kB | Without provenance | Details for fabric-credmgr-client-1.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fabric_credmgr_client-1.6.2-py3-none-any.whl | Python 3 | none | any | Details for fabric_credmgr_client-1.6.2-py3-none-any.whl |
Total release size: 99.5 kB
Release files / fabric-credmgr-client-1.6.2.tar.gz
| Download URL | fabric-credmgr-client-1.6.2.tar.gz |
|---|---|
| Size | 37.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8aa1d614cd6778968c2e7f08afe7099bfd416e7fe808bb0b58809b580e0575d
|
|
BLAKE2b-256 checksum How to use checksums |
d07e0ac3796afe26d98d6ef18ec41444b8ac01d4b36b0e4796e6e8bd162896d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Release files / fabric_credmgr_client-1.6.2-py3-none-any.whl
| Download URL | fabric_credmgr_client-1.6.2-py3-none-any.whl |
|---|---|
| Size | 61.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
176b6c6d2e3e83d1f4583b96e2067c3663ac8a84e83bd566838ac636e74a3b86
|
|
BLAKE2b-256 checksum How to use checksums |
ae237e56fefcc11f06e2cd95873f4f64f68ac6745cb7504d5ff418c38cfac0cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Security for fabric-credmgr-client 1.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.