This release is a pre-release and may not be stable for production use.
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 2.7 and 3.4+
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/
| 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_refresh_post | POST /tokens/refresh | Refresh tokens for an user |
| TokensApi | tokens_revoke_post | POST /tokens/revoke | Revoke a refresh token for an user |
| VersionApi | version_get | GET /version | Version |
Documentation For Models
- Jwks
- JwksKeys
- Request
- Status200OkNoContent
- Status200OkNoContentData
- Status200OkSingle
- Status400BadRequest
- Status400BadRequestErrors
- Status401Unauthorized
- Status401UnauthorizedErrors
- Status403Forbidden
- Status403ForbiddenErrors
- Status404NotFound
- Status404NotFoundErrors
- Status500InternalServerError
- Status500InternalServerErrorErrors
- Token
- Tokens
- Version
- VersionData
Documentation For Authorization
All endpoints do not require authorization.
Author
Metadata
Release files for fabric-credmgr-client 1.3rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fabric-credmgr-client-1.3rc2.tar.gz | 26.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fabric_credmgr_client-1.3rc2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 92.5 kB
Release files / fabric-credmgr-client-1.3rc2.tar.gz
| Download URL | fabric-credmgr-client-1.3rc2.tar.gz |
|---|---|
| Size | 26.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3c02f1a3a243b773c66c0fe0f6bac37b2adb7b716aab355f3c1f1838c47cc5d
|
|
BLAKE2b-256 checksum How to use checksums |
fd71c88efc5e8ac6df6bb23a5d443af17ea4f91df9841b5d1cd38421d44f11eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.54.1 importlib-metadata/3.7.3 keyring/21.5.0 rfc3986/1.4.0 colorama/0.4.4 CPython/3.9.7
|
Release files / fabric_credmgr_client-1.3rc2-py3-none-any.whl
| Download URL | fabric_credmgr_client-1.3rc2-py3-none-any.whl |
|---|---|
| Size | 66.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6902b83d0c4f88ceba4af4ebeeb7399c882909cbe1f3eeff55546be5a333f09
|
|
BLAKE2b-256 checksum How to use checksums |
f256b67e76981e88c47c1f64851f8e4eca6eb55e960541d5c0e605e68d3af085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.54.1 importlib-metadata/3.7.3 keyring/21.5.0 rfc3986/1.4.0 colorama/0.4.4 CPython/3.9.7
|