Iam
Project description
affinidi_tdk_iam_client
Affinidi IAM
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen For more information, please visit https://github.com/affinidi/affinidi-tdk
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import affinidi_tdk_iam_client
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:
import affinidi_tdk_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_iam_client
from affinidi_tdk_iam_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://apse1.api.affinidi.io/iam
# See configuration.py for a list of all supported configuration parameters.
configuration = affinidi_tdk_iam_client.Configuration(
host = "https://apse1.api.affinidi.io/iam"
)
# Enter a context with an instance of the API client
with affinidi_tdk_iam_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = affinidi_tdk_iam_client.ConsumerAuthApi(api_client)
consumer_auth_token_endpoint_input = affinidi_tdk_iam_client.ConsumerAuthTokenEndpointInput() # ConsumerAuthTokenEndpointInput | ConsumerAuthTokenEndpoint
try:
# The Consumer OAuth 2.0 Token Endpoint
api_response = api_instance.consumer_auth_token_endpoint(consumer_auth_token_endpoint_input)
print("The response of ConsumerAuthApi->consumer_auth_token_endpoint:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ConsumerAuthApi->consumer_auth_token_endpoint: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://apse1.api.affinidi.io/iam
Class | Method | HTTP request | Description |
---|---|---|---|
ConsumerAuthApi | consumer_auth_token_endpoint | POST /v1/consumer/oauth2/token | The Consumer OAuth 2.0 Token Endpoint |
DefaultApi | v1_auth_proxy_delete | DELETE /v1/auth/{proxy+} | |
DefaultApi | v1_auth_proxy_get | GET /v1/auth/{proxy+} | |
DefaultApi | v1_auth_proxy_patch | PATCH /v1/auth/{proxy+} | |
DefaultApi | v1_auth_proxy_post | POST /v1/auth/{proxy+} | |
DefaultApi | v1_auth_proxy_put | PUT /v1/auth/{proxy+} | |
DefaultApi | v1_idp_proxy_delete | DELETE /v1/idp/{proxy+} | |
DefaultApi | v1_idp_proxy_get | GET /v1/idp/{proxy+} | |
DefaultApi | v1_idp_proxy_patch | PATCH /v1/idp/{proxy+} | |
DefaultApi | v1_idp_proxy_post | POST /v1/idp/{proxy+} | |
DefaultApi | v1_idp_proxy_put | PUT /v1/idp/{proxy+} | |
PoliciesApi | get_policies | GET /v1/policies/principals/{principalId} | |
PoliciesApi | update_policies | PUT /v1/policies/principals/{principalId} | |
ProjectsApi | add_principal_to_project | POST /v1/projects/principals | |
ProjectsApi | create_project | POST /v1/projects | |
ProjectsApi | delete_principal_from_project | DELETE /v1/projects/principals/{principalId} | |
ProjectsApi | list_principals_of_project | GET /v1/projects/principals | |
ProjectsApi | list_project | GET /v1/projects | |
ProjectsApi | update_project | PATCH /v1/projects/{projectId} | |
StsApi | create_project_scoped_token | POST /v1/sts/create-project-scoped-token | |
StsApi | whoami | GET /v1/sts/whoami | |
TokensApi | create_token | POST /v1/tokens | |
TokensApi | delete_token | DELETE /v1/tokens/{tokenId} | |
TokensApi | get_token | GET /v1/tokens/{tokenId} | |
TokensApi | list_token | GET /v1/tokens | |
TokensApi | update_token | PATCH /v1/tokens/{tokenId} | |
WellKnownApi | get_well_known_did | GET /.well-known/did.json | |
WellKnownApi | get_well_known_jwks | GET /.well-known/jwks.json |
Documentation For Models
- ActionForbiddenError
- AddUserToProjectInput
- ConsumerAuthTokenEndpointInput
- ConsumerAuthTokenEndpointOutput
- CorsConsumerAuthTokenEndpointOK
- CreateProjectInput
- CreateProjectScopedTokenInput
- CreateProjectScopedTokenOutput
- CreateTokenInput
- GetWellKnownDidOK
- InvalidJwtTokenError
- InvalidParameterError
- JsonWebKeyDto
- JsonWebKeySetDto
- NotFoundError
- PolicyDto
- PolicyStatementDto
- PrincipalCannotBeDeletedError
- PrincipalDoesNotBelongToProjectError
- ProjectDto
- ProjectList
- ServiceErrorResponse
- ServiceErrorResponseDetailsInner
- TokenAuthenticationMethodDto
- TokenDto
- TokenList
- TokenPrivateKeyAuthenticationMethodDto
- TokenPrivateKeyAuthenticationMethodDtoPublicKeyInfo
- TokenPrivateKeyAuthenticationMethodDtoPublicKeyInfoOneOf
- TokenPrivateKeyAuthenticationMethodDtoPublicKeyInfoOneOf1
- TypedPricipalId
- UnauthorizedError
- UnexpectedError
- UpdateProjectInput
- UpdateTokenInput
- UpdateTokenPrivateKeyAuthenticationMethodDto
- UserDto
- UserList
- WhoamiDto
Documentation For Authorization
Authentication schemes defined for the API:
HeritageTokenAuth
- 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
ConsumerTokenAuth
- 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_iam_client-1.20.0.tar.gz
.
File metadata
- Download URL: affinidi_tdk_iam_client-1.20.0.tar.gz
- Upload date:
- Size: 37.8 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 | 9cea31cb3ade0ae26fbb3c2189701cc544aa913c9f359132f0c8acc148e609df |
|
MD5 | 435a6e13fc066dfd83932c65241251db |
|
BLAKE2b-256 | 5c90167f17209511da441d6e1850790861bd602412a26ebf9b2a4d340276d41a |
File details
Details for the file affinidi_tdk_iam_client-1.20.0-py3-none-any.whl
.
File metadata
- Download URL: affinidi_tdk_iam_client-1.20.0-py3-none-any.whl
- Upload date:
- Size: 88.4 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 | 81984c297de13dd3ad533af278d8559665c8c5031078486dcee330868c836fde |
|
MD5 | 0a4ba98d6ba732bdd5e77128b14c0683 |
|
BLAKE2b-256 | 05bdd939f944d8535cb13f113e316b0542b72a51a494eb48652f8dd63498b03d |