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.swagger_client
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:
import fabric_cm.credmgr.swagger_client
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
from fabric_cm.credmgr.swagger_client import DefaultApi
from fabric_cm.credmgr.swagger_client import ApiClient
from fabric_cm.credmgr.swagger_client.rest import ApiException
from fabric_cm.credmgr.swagger_client.configuration import Configuration
from pprint import pprint
# create an instance of the API class
api_instance = DefaultApi(ApiClient(configuration=Configuration()))
try:
# Return Public Keys to verify signature of the tokens
api_response = api_instance.certs_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->certs_get: %s\n" % e)
# create an instance of the API class
api_instance = DefaultApi(ApiClient(configuration=Configuration()))
try:
# version
api_response = api_instance.version_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->version_get: %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.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b60dbb54a7f50b791cec3707e4262a93d0fabe8a481cc29c9fc0f4a2bad1ad96 |
|
MD5 | 9f3e60dbd07d820d33a9e59810d9c7cd |
|
BLAKE2b-256 | 520ba8978c10e9f248f9a6aebcd645880796a4df8203cbf3ce39c5dd47784cf4 |
Hashes for fabric_credmgr_client-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0706c51cb7da9c9720831ff53a4900f65a3a9e77d2dbb55cb1629d2eeb235561 |
|
MD5 | e0ade70894ef48ae5dc97a00e0c6f616 |
|
BLAKE2b-256 | b3cc9c998227e29be02735c7f599a702c9a4972c56094f0253153b6fbd60f670 |