Use the set_auth_token function to set the Authentication token to connect to User Environment Service (UES) in VantageCloud Lake.
User must have the privilege to log on with a NULL password to use set_auth_token().
set_auth_token() opens a session in your default browser for authentication.
set_auth_token() also publishes a URL while running. If you are not able to access the session initiated by this API, you can manually copy the URL and paste it in any browser for authentication.
Required Argument
- ues_url
- Specifies the URL for User Environment Service in VantageCloud Lake.
Optional Argument
- client_id
- Specifies the id of the application that requests the access token from VantageCloud Lake.
This function returns True if the operation is successful.
Example 1: Set the Authentication token using default client_id
>>> import getpass
>>> set_auth_token(ues_url=getpass.getpass("ues_url : "))
Example 2: Set the Authentication token by specifying the client_id
>>> import getpass
>>> set_auth_token(ues_url=getpass.getpass("ues_url : "), client_id=getpass.getpass("client_id : "))