CredentialIssuanceService
Project description
affinidi_tdk_credential_issuance_client
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
For more information, please visit https://github.com/affinidi/affinidi-tdk
Documentation is available at https://docs.affinidi.com/dev-tools/affinidi-tdk/clients/credential-issuance/
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_credential_issuance_client
Then import the package:
import affinidi_tdk_credential_issuance_client
Setuptools
Install via Setuptools.
python setup.py install --user
Then import the package:
import affinidi_tdk_credential_issuance_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_credential_issuance_client
from affinidi_tdk_credential_issuance_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://apse1.api.affinidi.io/cis
# See configuration.py for a list of all supported configuration parameters.
configuration = affinidi_tdk_credential_issuance_client.Configuration(
host = "https://apse1.api.affinidi.io/cis"
)
# 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: ProjectTokenAuth
configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ProjectTokenAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with affinidi_tdk_credential_issuance_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = affinidi_tdk_credential_issuance_client.ConfigurationApi(api_client)
create_issuance_config_input = affinidi_tdk_credential_issuance_client.CreateIssuanceConfigInput() # CreateIssuanceConfigInput | Request body of create configuration
try:
api_response = api_instance.create_issuance_config(create_issuance_config_input)
print("The response of ConfigurationApi->create_issuance_config:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigurationApi->create_issuance_config: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://apse1.api.affinidi.io/cis
Class | Method | HTTP request | Description |
---|---|---|---|
ConfigurationApi | create_issuance_config | POST /v1/configurations | |
ConfigurationApi | delete_issuance_config_by_id | DELETE /v1/configurations/{configurationId} | |
ConfigurationApi | get_issuance_config_by_id | GET /v1/configurations/{configurationId} | |
ConfigurationApi | get_issuance_config_list | GET /v1/configurations | |
ConfigurationApi | update_issuance_config_by_id | PUT /v1/configurations/{configurationId} | |
CredentialsApi | generate_credentials | POST /v1/{projectId}/credential | |
IssuanceApi | issuance_state | GET /v1/{projectId}/issuance/state/{issuanceId} | |
IssuanceApi | list_issuance | GET /v1/{projectId}/issuance | |
IssuanceApi | start_issuance | POST /v1/{projectId}/issuance/start | |
OfferApi | get_credential_offer | GET /v1/{projectId}/offers/{issuanceId} | |
WellKnownApi | get_well_known_open_id_credential_issuer | GET /v1/{projectId}/.well-known/openid-credential-issuer |
Documentation For Models
- ActionForbiddenError
- ActionForbiddenErrorDetailsInner
- CorsGenerateCredentialsOK
- CorsGetCredentialOfferOK
- CorsGetWellKnownOpenIdCredentialIssuerOK
- CreateCredentialInput
- CreateIssuanceConfig400Response
- CreateIssuanceConfigInput
- CredentialIssuanceIdExistError
- CredentialOfferClaimedError
- CredentialOfferExpiredError
- CredentialOfferResponse
- CredentialOfferResponseGrants
- CredentialOfferResponseGrantsUrnIetfParamsOauthGrantTypePreAuthorizedCode
- CredentialOfferResponseGrantsUrnIetfParamsOauthGrantTypePreAuthorizedCodeTxCode
- CredentialProof
- CredentialResponse
- CredentialResponseDeferred
- CredentialResponseImmediate
- CredentialResponseImmediateCNonceExpiresIn
- CredentialResponseImmediateCredential
- CredentialSubjectNotValidError
- CredentialSupportedObject
- DeferredCredentialInput
- GenerateCredentials400Response
- GetCredentialOffer400Response
- InvalidCredentialRequestError
- InvalidCredentialTypeError
- InvalidIssuerWalletError
- InvalidJwtTokenError
- InvalidParameterError
- InvalidProofError
- IssuanceConfigDto
- IssuanceConfigListResponse
- IssuanceConfigMiniDto
- IssuanceStateResponse
- ListIssuanceResponse
- ListIssuanceResponseIssuancesInner
- MissingHolderDidError
- NotFoundError
- ProjectCredentialConfigExistError
- ProjectCredentialConfigNotExistError
- StartIssuance400Response
- StartIssuanceInput
- StartIssuanceInputDataInner
- StartIssuanceInputDataInnerMetaData
- StartIssuanceResponse
- SupportedCredentialMetadata
- SupportedCredentialMetadataDisplayInner
- SupportedCredentialMetadataDisplayInnerLogo
- UpdateIssuanceConfigInput
- VcClaimedError
- WellKnownOpenIdCredentialIssuerResponse
- WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner
Documentation For Authorization
Authentication schemes defined for the API:
AwsSigV4
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
ApiKey
- Type: API key
- API key parameter name: x-api-key
- Location: HTTP header
bearerAuth
- Type: Bearer authentication (JWT)
ConsumerTokenAuth
- Type: API key
- API key parameter name: authorization
- Location: HTTP header
UserTokenAuth
- Type: API key
- API key parameter name: authorization
- Location: HTTP header
ProjectTokenAuth
- Type: API key
- API key parameter name: authorization
- Location: HTTP header
HeritageTokenAuth
- Type: API key
- API key parameter name: authorization
- Location: HTTP header
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
File details
Details for the file affinidi_tdk_credential_issuance_client-1.23.1.tar.gz
.
File metadata
- Download URL: affinidi_tdk_credential_issuance_client-1.23.1.tar.gz
- Upload date:
- Size: 45.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dc1489d40ccfcc538b69d22881127dec2be4d46b056b456666f106cbe678ba6 |
|
MD5 | e462b3ee1d23085b38efcc5d919c8986 |
|
BLAKE2b-256 | 877b4b7d7f6ea3a87a947ce5000b494f780ae8e5c6c5bfb4ce709d861215b5ec |
File details
Details for the file affinidi_tdk_credential_issuance_client-1.23.1-py3-none-any.whl
.
File metadata
- Download URL: affinidi_tdk_credential_issuance_client-1.23.1-py3-none-any.whl
- Upload date:
- Size: 119.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac9253302ae7ccb402dd4d0175a38a70064d9a3e836e93f942617761f50fae2c |
|
MD5 | 81d9d0b92c62909ba6598cedbd4a72d3 |
|
BLAKE2b-256 | a8194086cd6c6c79b7a1b3bba4abf4866ea9254017a5c3f30cc3beae486014cb |