---
name: "condor_test_token"
section: "1"
platform: "linux"
package: "condor"
version: "23.9.6+dfsg-2.1+b10"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/condor_test_token"
---

# condor\_test\_token(1)

HTCondor Manual Create a short-lived SciToken to authenticate with local HTCondor daemons

## NAME

condor\_test\_token - HTCondor Manual

Create a short-lived SciToken to authenticate with local HTCondor daemons

## SYNOPSIS

**condor\_test\_token** \[**--help**\]

**condor\_test\_token** **--issuer** *issuer-url* **--scope** *scopes* \[**--subject** *subject*\] \[**--lifetime** *lifetime*\] \[**--audience** *audience*\] \[**--cache** *cache-location*\]

## DESCRIPTION

*condor\_test\_token* generates a temporary signing key, adds it to the local SciTokens cache for the given issuer, creates a short-lived token signed by the key, and prints the token to stdout. Local HTCondor daemons will treat this token like any reguluar token generated by the given issuer for a short period of time (one hour).

If the HTCondor daemons were started as root, then the tool must be run as the condor user.

## OPTIONS

- **--help**

  Display usage information

- **--issuer** *issuer-url*

  Specify the issuer to impersonate

- **--scope** *scopes*

  Specify the scope claim for the token

- **--subject** *subject*

  specify the sub claim for the token (default is no sub claim)

- **--lifetime** *lifetime*

  Specify the lifetime of the token in seconds (default 1 hour)

- **--audience** *audience*

  Specify the aud claim for the token (default is no aud claim)

- **--cache** *cache-location*

  Specify the SciTokens cache location (default is to find cache via HTCondor configuration files)

## EXAMPLES

To create a SciToken with WRITE-level access for user Alice that appears to be issued by the SciTokens demo issuer:

```
$ condor_test_token --issuer https://demo.scitokens.org \
    --scope condor:/WRITE --sub alice@foo.org --aud ANY
```

## EXIT STATUS

*condor\_test\_token* will exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure.

## AUTHOR

HTCondor Team

## COPYRIGHT

1990-2024, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0.
