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?
- Navigate to the Profile & Settings from homepage.
- Click on the Access Tokens section and click on 'Create Access Token' button.
- Fill in the required information (Shown in the table below) and Create Token.
- Copy the access token displayed on the screen and secure it.
- Note: If the popup is closed then user will not be able to view the token and have to create a new token again.
Attribute | Description |
---|---|
Token Name | Name of Token |
Expiry Date | The expiry date of the Token |
Description | Description of Token |
Role Name | Name of the Role to which the Token will be assigned to |
Expiration Alerts(1st Alert Before) | Sends 1st alert email before the token expiration based on the specified number of days |
Expiration Alerts(2nd Alert Before) | 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).
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.