affinidi_tdk_iam_client 1.14.0

SDKdartflutter
Platformandroidioswindowslinuxmacosweb

Affinidi TDK dart client for Affinidi IAM

affinidi_tdk_iam_client (EXPERIMENTAL)

Affinidi TDK dart client for Affinidi IAM

Requirements

Installation & Usage

pub.dev

To use the package from pub.dev, please include the following in pubspec.yaml

dependencies:
  affinidi_tdk_iam_client: ^1.0.0

Github

This Dart package is published to Github, please include the following in pubspec.yaml

dependencies:
  affinidi_tdk_iam_client:
    git:
      url: https://github.com/affinidi/affinidi-tdk.git
      ref: main
      path: clients/dart/iam_client

Local development

To use the package from your local drive, please include the following in pubspec.yaml

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

Install dependencies

dart pub get

Getting Started

Please follow the installation procedure and then run the following:

import 'package:affinidi_tdk_iam_client/affinidi_tdk_iam_client.dart';


final api = AffinidiTdkIamClient().getAuthzApi();
final String granteeDid = granteeDid_example; // String |

try {
    api.deleteAccessVfs(granteeDid);
} catch on DioException (e) {
    print("Exception when calling AuthzApi->deleteAccessVfs: $e\n");
}

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
AuthzApideleteAccessVfsDELETE /v1/authz/vfs/access/{granteeDid}delete access of granteeDid
AuthzApigrantAccessVfsPOST /v1/authz/vfs/accessGrant access to the virtual file system
AuthzApiupdateAccessVfsPUT /v1/authz/vfs/access/{granteeDid}Update access of granteeDid
ConsumerAuthApiconsumerAuthTokenEndpointPOST /v1/consumer/oauth2/tokenThe Consumer OAuth 2.0 Token Endpoint
DefaultApiv1AuthProxyDeleteDELETE /v1/auth/{proxy+}
DefaultApiv1AuthProxyGetGET /v1/auth/{proxy+}
DefaultApiv1AuthProxyPatchPATCH /v1/auth/{proxy+}
DefaultApiv1AuthProxyPostPOST /v1/auth/{proxy+}
DefaultApiv1AuthProxyPutPUT /v1/auth/{proxy+}
DefaultApiv1IdpProxyDeleteDELETE /v1/idp/{proxy+}
DefaultApiv1IdpProxyGetGET /v1/idp/{proxy+}
DefaultApiv1IdpProxyPatchPATCH /v1/idp/{proxy+}
DefaultApiv1IdpProxyPostPOST /v1/idp/{proxy+}
DefaultApiv1IdpProxyPutPUT /v1/idp/{proxy+}
PoliciesApigetPoliciesGET /v1/policies/principals/{principalId}
PoliciesApiupdatePoliciesPUT /v1/policies/principals/{principalId}
ProjectsApiaddPrincipalToProjectPOST /v1/projects/principals
ProjectsApicreateProjectPOST /v1/projects
ProjectsApideletePrincipalFromProjectDELETE /v1/projects/principals/{principalId}
ProjectsApilistPrincipalsOfProjectGET /v1/projects/principals
ProjectsApilistProjectGET /v1/projects
ProjectsApiupdateProjectPATCH /v1/projects/{projectId}
StsApicreateProjectScopedTokenPOST /v1/sts/create-project-scoped-token
StsApiwhoamiGET /v1/sts/whoami
TokensApicreateTokenPOST /v1/tokens
TokensApideleteTokenDELETE /v1/tokens/{tokenId}
TokensApigetTokenGET /v1/tokens/{tokenId}
TokensApilistProjectsOfTokenGET /v1/tokens/{tokenId}/projects
TokensApilistTokenGET /v1/tokens
TokensApiupdateTokenPATCH /v1/tokens/{tokenId}
WellKnownApigetWellKnownDidGET /.well-known/did.json
WellKnownApigetWellKnownJwksGET /.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

info@affinidi.com