influxd-ctl token
The influxd-ctl token
command generates a signed JSON Web Token (JWT).
Usage
influxd-ctl -auth-type jwt -secret <shared secret> token [flags]
Requires global flags
influxd-ctl token
requires the -auth-type
and -secret
global flags.
- Set
-auth-type
tojwt
- Use
-secret
to provide your JWT shared secret
Flags
Flag | Description |
---|---|
-exp | Token expiration duration (default is 1m0s ) |
Examples
Generate a JWT token that expires in 5 minutes
influxd-ctl \
-auth-type jwt \
-secret sHaR3dS3cRe7 \
token -exp 5m
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.