Skip to content
Registry StackDocsDevelopment (unreleased)

mint token command reference

View as Markdown

Obtain an access token from a running token endpoint, as a client would.

This page is generated from the public Clap command tree. Hidden implementation commands are omitted.

Obtain an access token from a running token endpoint, as a client would. This authenticates. It signs a client assertion with the caller’s own key and posts it; the endpoint decides. Nothing here can produce a token the same request over the wire would not have produced.

mint token [OPTIONS] --url <URL> --client-id <CLIENT_ID> --key <KEY>
ConditionRequirement
--actor <ACTOR> is present--subject-file <SUBJECT_FILE> is required.
--subject-file <SUBJECT_FILE> is present--actor <ACTOR> is required.
OptionAlways requiredDefaultValuesEnvironmentDescription
--url <URL>Yesn/an/an/aThe token endpoint, for example https://mint.example.org/token
--client-id <CLIENT_ID>Yesn/an/an/aThe clientId this caller is registered under
--key <KEY>Yesn/an/an/aThe caller’s private JWK. Must be owner-only and not a symlink
--audience <AUDIENCE>Non/an/an/aThe endpoint’s configured clientAssertion.audience. Defaults to --url, which is the usual configuration
--actor <ACTOR>Non/an/an/aRequest a delegated token for this actor. Requires --subject-file
--subject-file <SUBJECT_FILE>Non/an/an/aA JSON object of subject selector fields, for the actor to act for. A file rather than repeated flags on purpose: these are a real person’s identifying details, and command lines are visible to every process on the host and land in shell history.
--lifetime-seconds <LIFETIME_SECONDS>No120n/an/aAssertion lifetime in seconds
--ca-certificate <CA_CERTIFICATE>Non/an/an/aTrust this PEM certificate bundle in addition to the system roots, for a development deployment behind a private CA
--verboseNon/an/an/aPrint the full endpoint response instead of the access token alone
-h, --helpNon/an/an/aPrint help (see a summary with ‘-h’)

Run npm run generate from docs/site after changing a public command, argument, option, default, environment binding, or help description.