Skip to main content

Fabric Credential Manager API

Project description

Requirements Status

PyPI

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

Documentation For Authorization

All endpoints do not require authorization.

Author

kthare10@unc.edu

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fabric-credmgr-client-1.3rc4.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fabric_credmgr_client-1.3rc4-py3-none-any.whl (66.5 kB view details)

Uploaded Python 3

File details

Details for the file fabric-credmgr-client-1.3rc4.tar.gz.

File metadata

  • Download URL: fabric-credmgr-client-1.3rc4.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for fabric-credmgr-client-1.3rc4.tar.gz
Algorithm Hash digest
SHA256 98ae42ac9745d6eab5ff9b208517a04b2b6846dc686573c2bde4fe8ce544b70e
MD5 faaa6b25f1c3b0124ad2780b2e751fe3
BLAKE2b-256 78e8ca50bcbf8ddb3429ee1f005533aa22c6975d93e94a06442a9090ac1701a1

See more details on using hashes here.

File details

Details for the file fabric_credmgr_client-1.3rc4-py3-none-any.whl.

File metadata

  • Download URL: fabric_credmgr_client-1.3rc4-py3-none-any.whl
  • Upload date:
  • Size: 66.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for fabric_credmgr_client-1.3rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 24bab4a8fc4fb87bc519d035d273d8c57b8b491e6f93f68b39073e1844457a8c
MD5 e031b4d7209257e4ff65349d4f34ae40
BLAKE2b-256 f8cf9dfecb6f0ae68b992206d39c3e084c00e7f93be7f3833a2dbd192d1abb30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page