Access Tokens
Access Tokens are type of tokens that Amorphic uses to make API requests on behalf of a user. The access token represents the authorization of a specific application to access specific parts of a user’s data.
How to create an access token?
- Go to
settings
- Click the '+' sign
Access Tokens
- Fill in the required information (Shown in the table below)
- Copy the access token (Secure it in a safe place)
Attribute | Description |
---|---|
Token Name | Name of Token |
Description | Description of Token |
Expiry Date | The expiry date of the Token |
Role Name | Name of the Role to which the Token will be assigned to |
Expiration Alerts(1st Alert) | Sends 1st alert email before the token expiration based on the specified number of days |
Expiration Alerts(2nd Alert) | Sends 2nd alert email before the token expiration based on the specified number of days |
You will receive email notifications before the token expires based on the specified Expiration Alerts (1st and 2nd alert deadlines).
Access token Use Case
Extending Authentication Timeout in Amorphic.
When using Amorphic via cli/curl, users need an Authentication Header to access Amorphic. However, the Authentication header value has a timeout limit, which can cause authentication timeout errors. To avoid this issue, users can create an Access Token with a set timeout date and time, allowing them to extend the timeout to a much longer period. By using this feature, users can reduce the need to obtain a new value from the Amorphic console repeatedly. The Access Token value acts as the value for the authentication header, based on the timeout that has been set by the user. This approach provides a seamless experience for users and ensures that they can access Amorphic for longer periods without interruptions due to authentication timeouts.