galileo_sdk.sdk.auth.AuthSdk.initialize

AuthSdk.initialize(refresh_token_path='/home/docs/.galileo')[source]

Automatically authenticate the user either through a webbrowser or auth-link printed to the terminal.

Parameters

refresh_token_path – string: An optional file path for where to store auth token information. If you don not want authentication info to be stored, pass an empty string, i.e. refresh_token_path=’’. The default location is in you home directory in a file named .galileo.

Returns

access_token, refresh_token, expiration

Example:
>>> from galileo_sdk import GalileoSdk, AuthSdk
>>> myauth = AuthSdk()
>>> access_token, refresh_token, expiry_time = myauth.initialize()
>>> galileo = GalileoSdk(auth_token=access_token, refresh_token=refresh_token)