Fabric Credential Manager API
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 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_name='all', 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 |
DefaultApi | version_get | GET /version | version |
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 |
Documentation For Models
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-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c021293403dcdc90d3f7c553e4a72a764b8c7b5c1b7a29fa1a9484a097abb4f6 |
|
MD5 | 618a8bc374a92c320be381472fe0b921 |
|
BLAKE2b-256 | 78bb6a8e861b7a7d33fad59df7e69de7f39e4a46bc948dbe682306fc6e253fd4 |
Hashes for fabric_credmgr_client-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d2278ba4f649b64a195159ed530f3ebc410ef1fa3b4ac3d0c8a7f97cb8015ad |
|
MD5 | cb9c2a512bc8a640dea35f979fa4cb8b |
|
BLAKE2b-256 | 2b68e265fb24f4c0f85a4eb764a5a5a02c82e93217eaaeb345f579ee4419e943 |