condor_token_list1
Htcondor manual list all available tokens for idtokens auth
Usage
condor_token_list [-dir
directory]
condor_token_list -help
Overview
condor_token_list parses the tokens available to the current user and prints them to stdout.
The tokens are stored in files in the directory referenced by SEC_TOKEN_DIRECTORY; multiple tokens may be saved in each file (one per line).
The output format is a list of the deserialized contents of each token, along with the file name containing the token, one per line. It should not be considered machine readable and will be subject to change in future release of HTCondor.
Options
-
-help -
Display brief usage information and exit.
-
-dir -
Read tokens from an alternate directory.
Examples
To list all tokens as the current user:
$ condor_token_list
Header: {"alg":"HS256","kid":"POOL"} Payload: {"exp":1565576872,"iat":1565543872,"iss":"htcondor.cs.wisc.edu","scope":"condor:\/DAEMON","sub":"[email protected]"} File: /home/bucky/.condor/tokens.d/token1
Header: {"alg":"HS256","kid":"POOL"} Payload: {"iat":1572414350,"iss":"htcondor.cs.wisc.edu","scope":"condor:\/WRITE","sub":"[email protected]"} File: /home/bucky/.condor/tokens.d/token2
Exit status
condor_token_list will exit with a non-zero status value if it fails to read the token directory, tokens are improperly formatted, or if it experiences some other error. Otherwise, it will exit 0.