Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 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

Documentation For Authorization

All endpoints do not require authorization.

Author

kthare10@unc.edu

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.6.0b4.tar.gz (36.8 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.6.0b4-py3-none-any.whl (60.3 kB view details)

Uploaded Python 3

File details

Details for the file fabric-credmgr-client-1.6.0b4.tar.gz.

File metadata

  • Download URL: fabric-credmgr-client-1.6.0b4.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for fabric-credmgr-client-1.6.0b4.tar.gz
Algorithm Hash digest
SHA256 2c1165531075250200de36d29b04376d3abe52540dd86cf2b1de1f3fdb6e3cd0
MD5 43e72eb64816414e71121539e14da0cc
BLAKE2b-256 d418e8e7129e5ea30014831cd1864ed4b65d2b1ee8c6db1382a687293edade1e

See more details on using hashes here.

File details

Details for the file fabric_credmgr_client-1.6.0b4-py3-none-any.whl.

File metadata

File hashes

Hashes for fabric_credmgr_client-1.6.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 31b7aeeef5cb31bdcc7f4dbd3ce108e2dbc46fae24da0394b37c9b35ee30c59c
MD5 f68072cd901ed09b0f0bd2988a01da25
BLAKE2b-256 c641a051c4573ca53c2aad1f79680e3f8bfbc4f5acd1178651e0710d7dbe52f5

See more details on using hashes here.

Release history Release notifications | RSS feed

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

This release

1.6.0b4 This release

2 files

1.5.3

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.1

2 files

1.2

2 files

1.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page