execute gen-token
Generate bearer token.
execute gen-token <Type> <string> <Algorithm> <Expire>
|
Parameter |
Description |
Type |
Size |
|---|---|---|---|
|
<Type> |
Type for token generation, by certificate or by pre-shared key. Available types: cert, key |
string |
|
|
<string> |
Certificate or preshared-key for token generation. Available certificates: |
string |
|
|
<Algorithm> |
Algorithm for token generation. Please ensure that the signing algorithm matches the type of certificate and its corresponding private key. Available Algorithms: RS256, RS384, RS512, ES256, ES384, ES512 for cert. HS256, HS384, HS512 for key. |
string |
|
|
<Expire> |
Expire interval in hours, 0 for long live token. |
string |
|