authenticate jwt
Command: boundary authenticate jwt
The authenticate jwt command exchanges a signed JSON Web Token (JWT) for a Boundary auth token using the JWT auth method.
Example
The following example uses a JWT auth method with the ID amjwt_1234567890 to authenticate, reading the JWT from an environment variable:
$ boundary authenticate jwt \
-auth-method-id amjwt_1234567890 \
-jwt-token env://WORKLOAD_JWT
Usage
$ boundary authenticate jwt [options] [args]
Command options
-auth-method-id(string: "")- The ID of the JWT auth method to use for authentication. If not set, the CLI uses the primary auth method of the scope. You can also specify the auth method using theBOUNDARY_AUTH_METHOD_IDenvironment variable.-jwt-token(string: "")- The signed JWT to present for authentication. This value must use theenv://orfile://scheme to reference the JWT from an environment variable or a file. Do not pass the raw JWT directly as a flag value. You can also supply the JWT itself using theBOUNDARY_AUTHENTICATE_JWT_TOKENenvironment variable. This command does not support-output-curl-string.-scope-id(string: "")- The scope in which to find the primary auth method. Used only when you omit-auth-method-id. The default isglobal. You can also specify the scope using theBOUNDARY_SCOPE_IDenvironment variable.