Changing Signing Algorithm for an Existing API
Last Updated:
Overview
Applies To
- APIs
Solution
To update the signing algorithm for the existing API, follow these steps:
- Navigate to Management API Update a Resource Server:
- Specifically, use the PATCH /api/v2/resource-servers/{id} endpoint.
- Replace the {id} with the API ID of the desired API. The API ID is in the Auth0 Dashboard under APIs > YOUR API > ID.
- Set the Signing Algorithm:
- In the request body, include the following:
{
"signing_alg": "HS256"
}
- Replace HS256 with the desired algorithm (e.g., RS256).
- Test the Endpoint:
- Click Test Endpoint to verify that the changes take effect.
- It is highly recommended to test this and any other future changes in a non-production environment to ensure the alignment with specific requirements.