File: condor_token_list.rst

package info (click to toggle)
condor 23.9.6%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 60,012 kB
  • sloc: cpp: 528,272; perl: 87,066; python: 42,650; ansic: 29,558; sh: 11,271; javascript: 3,479; ada: 2,319; java: 619; makefile: 615; xml: 613; awk: 268; yacc: 78; fortran: 54; csh: 24
file content (66 lines) | stat: -rw-r--r-- 1,881 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66


*condor_token_list*
======================

list all available tokens for IDTOKENS auth
:index:`condor_token_list<single: condor_token_list; HTCondor commands>`\ :index:`condor_token_list command`

Synopsis
--------

**condor_token_list** [**-dir** *directory*]

**condor_token_list** **-help**

Description
-----------

*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:

.. code-block:: console

    $ condor_token_list
    Header: {"alg":"HS256","kid":"POOL"} Payload: {"exp":1565576872,"iat":1565543872,"iss":"htcondor.cs.wisc.edu","scope":"condor:\/DAEMON","sub":"k8sworker@wisc.edu"} File: /home/bucky/.condor/tokens.d/token1
    Header: {"alg":"HS256","kid":"POOL"} Payload: {"iat":1572414350,"iss":"htcondor.cs.wisc.edu","scope":"condor:\/WRITE","sub":"bucky@wisc.edu"} 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.


See also
--------

:manpage:`condor_token_create(1)`, :manpage:`condor_token_fetch(1)`, :manpage:`condor_token_request(1)`

Author
------

Center for High Throughput Computing, University of Wisconsin-Madison