Authentication

Credentials

class adobe.pdfservices.operation.auth.credentials.Credentials

Bases: ABC

This abstract class represents the basic contract for the credentials to be used with ServicePrincipalCredentials.

ServicePrincipalCredentials

class adobe.pdfservices.operation.auth.service_principal_credentials.ServicePrincipalCredentials(client_id: str, client_secret: str)

Bases: Credentials

Service Principal credentials allow your application to call PDF Services API. For getting the credentials, Click Here.

Constructs an instance of ServicePrincipalCredentials.

Parameters:
  • client_id (str) – client ID for ServicePrincipalCredentials; can not be None or empty.

  • client_secret (str) – client secret for ServicePrincipalCredentials; can not be None or empty.

get_client_id()
Returns:

Client Id

Return type:

str

get_client_secret()
Returns:

Client Secret

Return type:

str