get_access_token#

lsst.rsp.get_access_token(tokenfile=None, log=None)#

Get the Gafaelfawr access token for the user.

Determine the access token from the mounted location (nublado 3/2) or environment (any). Prefer the mounted version since it can be updated, while the environment variable stays at whatever it was when the process was started. Return the empty string if the token cannot be determined.

Use RSPDiscovery.get_token instead. This function will be deprecated once tutorial notebooks are updated.

Parameters:
Return type:

str