load_token_file¶
- igwn_auth_utils.scitokens.load_token_file(path, **kwargs)¶
Load a SciToken from a file path.
- Parameters:
path (
str) – the path to the scitokens filekwargs – all keyword arguments are passed on to
deserialize_token()
- Returns:
token – the deserialised token
- Return type:
scitokens.SciToken
Examples
To load a token and validate a specific audience:
>>> load_token('mytoken', audience="my.service.org")
See also
scitokens.SciToken.deserializefor details of the deserialisation, and any valid keyword arguments