Skip to main content

affinidi_tdk_consumer_iam_client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

For more information, please visit https://www.affinidi.com

Documentation is available at https://docs.affinidi.com/dev-tools/affinidi-tdk/clients/consumer-iam

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install affinidi_tdk_consumer_iam_client

Then import the package:

import affinidi_tdk_consumer_iam_client

Setuptools

Install via Setuptools.

python setup.py install --user

Then import the package:

import affinidi_tdk_consumer_iam_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import time
import affinidi_tdk_consumer_iam_client
from affinidi_tdk_consumer_iam_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://apse1.api.affinidi.io/cid
# See configuration.py for a list of all supported configuration parameters.
configuration = affinidi_tdk_consumer_iam_client.Configuration(
    host = "https://apse1.api.affinidi.io/cid"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: ConsumerTokenAuth
configuration.api_key['ConsumerTokenAuth'] = os.environ["API_KEY"]

# Configure a hook to auto-refresh API key for your personal access token (PAT), if expired
import affinidi_tdk_auth_provider

stats = {
  apiGatewayUrl,
  keyId,
  passphrase,
  privateKey,
  projectId,
  tokenEndpoint,
  tokenId,
}
authProvider = affinidi_tdk_auth_provider.AuthProvider(stats)
configuration.refresh_api_key_hook = lambda api_client: authProvider.fetch_project_scoped_token()

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ConsumerTokenAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with affinidi_tdk_consumer_iam_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = affinidi_tdk_consumer_iam_client.AuthzApi(api_client)
    grantee_did = 'grantee_did_example' # str |

    try:
        # delete access of granteeDid
        api_instance.delete_access_vfs(grantee_did)
    except ApiException as e:
        print("Exception when calling AuthzApi->delete_access_vfs: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://apse1.api.affinidi.io/cid

Class Method HTTP request Description
AuthzApi delete_access_vfs DELETE /v1/authz/vfs/access/{granteeDid} delete access of granteeDid
AuthzApi get_access_vfs GET /v1/authz/vfs/access/{granteeDid} Get permissions to the virtual file system for a subject
AuthzApi grant_access_vfs POST /v1/authz/vfs/access/{granteeDid} Grant access to the virtual file system
AuthzApi update_access_vfs PUT /v1/authz/vfs/access/{granteeDid} Update access of granteeDid
ConsumerAuthApi consumer_auth_token_endpoint POST /v1/consumer/oauth2/token The Consumer OAuth 2.0 Token Endpoint
WellKnownApi get_well_known_jwks GET /.well-known/jwks.json

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ConsumerTokenAuth

  • Type: API key
  • API key parameter name: authorization
  • Location: HTTP header

Author

info@affinidi.com

Download files

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

Source Distribution

affinidi_tdk_consumer_iam_client-1.3.0.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file affinidi_tdk_consumer_iam_client-1.3.0.tar.gz.

File metadata

File hashes

Hashes for affinidi_tdk_consumer_iam_client-1.3.0.tar.gz
Algorithm Hash digest
SHA256 259fc5a2aa639ee607158e8348b75d11e9c8d0ac261e78dce68a371d64b991dc
MD5 9211e9f587e22f5edacf87a0b30146f9
BLAKE2b-256 74eaf37a8ab78ead8972475fc4da344a3d528c17670feac8450abf57b5f762e0

See more details on using hashes here.

File details

Details for the file affinidi_tdk_consumer_iam_client-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for affinidi_tdk_consumer_iam_client-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d2c7cdff1492ba4723b0358835d5a9a09ad5e056749e345825d777ec00d1a3e
MD5 ad0c9f5b7b149cfc83ab867bb2189c21
BLAKE2b-256 d4e27a05e5c840acb00a2b13157e0831ad02fd7352a46e823ab52bf5c7c59b6b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 files

1.2.0

2 files

Supported by

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