IAM Application Get Token

Appidp interface

Access to the Appidp endpoint.

The user is not expected to use this class directly. It is an attribute of the Archivist class.

For example instantiate an Archivist instance and execute the methods of the class:

with open(".auth_token", mode="r", encoding="utf-8") as tokenfile:
    authtoken = tokenfile.read().strip()

# Initialize connection to Archivist
arch = Archivist(
    "https://app.datatrails.ai",
    authtoken,
)
appidp = arch.appidp.token(...)
class archivist.appidp.AppIDP[source]

Appidp object

class archivist.appidp._AppIDPClient(archivist_instance: Archivist)[source]

AppIDP Client

Access to appidp entities. This class is usually accessed as an attribute of the Archivist class.

Parameters:

archivist (Archivist) -- Archivist instance

token(client_id: str, client_secret: str) AppIDP[source]

Create access token from client id and secret

Parameters:
  • client_id (str) -- client id

  • client_secret (str) -- client_secret

Returns:

AppIDP instance