JWTCredentials

class verta.credentials.JWTCredentials(jwt_token, jwt_token_sig, organization_id=None)

Container class for JWT token credentials for the Verta Platform.

Variables:
  • jwt_token (str) – A jwt token.

  • jwt_token_sig (str) – A jwt token signature.

  • organization_id (str, optional) – An organization ID to use for authentication.

export_env_vars_to_os()

Write credential data to appropriate os environment variables.

headers()

Return headers carrying the information of these credentials.

Returns:

dict – Dictionary of headers carrying credential information.

set_organization_id(organization_id)

Set the organization ID for these credentials.

Parameters:

organization_id (str) – Organization ID to use for authentication.