Authentication

class Auth(domain='https://accounts.descarteslabs.com', scope=None, leeway=500, token_info_path='/root/.descarteslabs/token_info.json', client_id=None, client_secret=None, jwt_token=None, refresh_token=None)[source]
classmethod from_environment_or_token_json(**kwargs)[source]

Creates an Auth object from environment variables CLIENT_ID, CLIENT_SECRET, JWT_TOKEN if they are set, or else from a JSON file at the given path. :param domain: endpoint for auth0 :param scope: the JWT fields to be included :param leeway: JWT expiration leeway :param token_info_path: path to a JSON file optionally holding auth information

namespace
payload
session
token