rykloud mail service-accounts token
Exchange a service account's secret for an access token (at most an hour)
Exchange a service account's secret for a short access token, to use as RYKLOUD_MAIL_TOKEN. The secret is read from --secret-file (- for standard input) or RYKLOUD_MAIL_SA_SECRET, never from a flag's value, and reaches this route and nothing else.
Usage
rykloud mail service-accounts token [flags]Examples
rykloud mail service-accounts token --secret-file ci.secret --ttl-minutes 30 > token
RYKLOUD_MAIL_SA_SECRET=... rykloud mail service-accounts token -o jsonFlags
- --force
- replace --output-file when it exists
- --output-file
- write the secret to this file (made with mode 0600) instead of printing it
- --scope
- fewer scopes than the account holds, for this token only (repeat for several)
- --secret-file
- read the secret from this file (- for standard input)
- --show-secret
- print the secret on this terminal
- --ttl-minutes
- minutes the token lasts, 1 to 60 (15 by default) (default 0)
Every command also takes the global flags.