Skip to content

Latest commit

 

History

History

iam_client

affinidi_tdk_iam_client

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

This Dart package is automatically generated by the OpenAPI Generator project:

Requirements

Dart 2.12 or later

Installation & Usage

Github

If this Dart package is published to Github, add the following dependency to your pubspec.yaml

dependencies:
  affinidi_tdk_iam_client:
    git: https://github.com/affinidi.com/affinidi-tdk.git

Local

To use the package in your local drive, add the following dependency to your pubspec.yaml

dependencies:
  affinidi_tdk_iam_client:
    path: /path/to/affinidi_tdk_iam_client

Tests

TODO

Getting Started

Please follow the installation procedure and then run the following:

import 'package:affinidi_tdk_iam_client/api.dart';


final api_instance = ConsumerAuthApi();
final consumerAuthTokenEndpointInput = ConsumerAuthTokenEndpointInput(); // ConsumerAuthTokenEndpointInput | ConsumerAuthTokenEndpoint

try {
    final result = api_instance.consumerAuthTokenEndpoint(consumerAuthTokenEndpointInput);
    print(result);
} catch (e) {
    print('Exception when calling ConsumerAuthApi->consumerAuthTokenEndpoint: $e\n');
}

Documentation for API Endpoints

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

Class Method HTTP request Description
ConsumerAuthApi consumerAuthTokenEndpoint POST /v1/consumer/oauth2/token The Consumer OAuth 2.0 Token Endpoint
DefaultApi v1AuthProxyDelete DELETE /v1/auth/{proxy+}
DefaultApi v1AuthProxyGet GET /v1/auth/{proxy+}
DefaultApi v1AuthProxyPatch PATCH /v1/auth/{proxy+}
DefaultApi v1AuthProxyPost POST /v1/auth/{proxy+}
DefaultApi v1AuthProxyPut PUT /v1/auth/{proxy+}
DefaultApi v1IdpProxyDelete DELETE /v1/idp/{proxy+}
DefaultApi v1IdpProxyGet GET /v1/idp/{proxy+}
DefaultApi v1IdpProxyPatch PATCH /v1/idp/{proxy+}
DefaultApi v1IdpProxyPost POST /v1/idp/{proxy+}
DefaultApi v1IdpProxyPut PUT /v1/idp/{proxy+}
PoliciesApi getPolicies GET /v1/policies/principals/{principalId}
PoliciesApi updatePolicies PUT /v1/policies/principals/{principalId}
ProjectsApi addPrincipalToProject POST /v1/projects/principals
ProjectsApi createProject POST /v1/projects
ProjectsApi deletePrincipalFromProject DELETE /v1/projects/principals/{principalId}
ProjectsApi listPrincipalsOfProject GET /v1/projects/principals
ProjectsApi listProject GET /v1/projects
ProjectsApi updateProject PATCH /v1/projects/{projectId}
StsApi createProjectScopedToken POST /v1/sts/create-project-scoped-token
StsApi whoami GET /v1/sts/whoami
TokensApi createToken POST /v1/tokens
TokensApi deleteToken DELETE /v1/tokens/{tokenId}
TokensApi getToken GET /v1/tokens/{tokenId}
TokensApi listToken GET /v1/tokens
TokensApi updateToken PATCH /v1/tokens/{tokenId}
WellKnownApi getWellKnownDid GET /.well-known/did.json
WellKnownApi getWellKnownJwks GET /.well-known/jwks.json

Documentation For Models

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

[email protected]