get_scitoken¶
- igwn_auth_utils.get_scitoken(*args, outfile=None, minsecs=60, quiet=True, **kwargs)¶
Get a new SciToken using
htgettokenand return its file location.- Parameters:
args – All positional arguments are passed as arguments to
htgettoken.main.outfile (
str, optional) – The path in which to serialize the newSciToken. Default given bydefault_bearer_token_file().minsecs (
float, optional) – The minimum remaining lifetime to reuse an existing bearer token.quiet (
bool, optional) – IfTrue, supress output fromhtgettoken.kwargs – All
key: valuekeyword arguments (includingminsecsandquiet) are passed as--key=valueoptions tohtgettoken.main. Keywords with the valueTrueare passed simply as--key, while those with the valueFalseare omitted.
- Returns:
tokenfile – The path to the bearer token file acquired by
htgettoken.- Return type:
See also
igwn_auth_utils.scitokens.default_bearer_token_fileFor information on the default bearer token path.