Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fabric-credmgr-client

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fabric-credmgr-client

Fabric Control Framework

  • 1.6.1
  • PyPI
  • Socket score

Maintainers
2

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/

ClassMethodHTTP requestDescription
DefaultApicerts_getGET /certsReturn Public Keys to verify signature of the tokens
TokensApitokens_create_postPOST /tokens/createGenerate tokens for an user
TokensApitokens_getGET /tokensGet tokens
TokensApitokens_refresh_postPOST /tokens/refreshRefresh tokens for an user
TokensApitokens_revoke_list_getGET /tokens/revoke_listGet token revoke list i.e. list of revoked identity token hashes
TokensApitokens_revoke_postPOST /tokens/revokeRevoke a token for an user
TokensApitokens_revokes_postPOST /tokens/revokesRevoke a token
TokensApitokens_validate_postPOST /tokens/validateValidate an identity token issued by Credential Manager
VersionApiversion_getGET /versionVersion

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

kthare10@unc.edu

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc