Skip to content

Latest commit

 

History

History
78 lines (55 loc) · 4.21 KB

ConsumerAuthApi.md

File metadata and controls

78 lines (55 loc) · 4.21 KB

affinidi_tdk_iam_client.ConsumerAuthApi

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

Method HTTP request Description
consumer_auth_token_endpoint POST /v1/consumer/oauth2/token The Consumer OAuth 2.0 Token Endpoint

consumer_auth_token_endpoint

ConsumerAuthTokenEndpointOutput consumer_auth_token_endpoint(consumer_auth_token_endpoint_input)

The Consumer OAuth 2.0 Token Endpoint

Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/ The Ory SDK is not yet able to this endpoint properly.

Example

import time
import os
import affinidi_tdk_iam_client
from affinidi_tdk_iam_client.models.consumer_auth_token_endpoint_input import ConsumerAuthTokenEndpointInput
from affinidi_tdk_iam_client.models.consumer_auth_token_endpoint_output import ConsumerAuthTokenEndpointOutput
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 Exception as e:
        print("Exception when calling ConsumerAuthApi->consumer_auth_token_endpoint: %s\n" % e)

Parameters

Name Type Description Notes
consumer_auth_token_endpoint_input ConsumerAuthTokenEndpointInput ConsumerAuthTokenEndpoint

Return type

ConsumerAuthTokenEndpointOutput

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Consumer Token OK Response _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 BadRequestError _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
403 ForbiddenError _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
500 UnexpectedError _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -

[Back to top] [Back to API list] [Back to Model list] [Back to README]