We are getting this error on restapi when connecting. What could be causing this? We recently had to do a complete reinstall from a configuration backup due to a rollback of 2023. We are running 2021.1

440 : '{'message':'Failed to decrypt an authentication token. The decryption key is missing.','code':'unauthenticated'}'

by (2.3k points)

1 Answer

by (3.6k points)
Best answer
0 votes

Hello Mark,

This error message can occur when the same security token for REST API is renewed and reused for a long time, approximately a week. Once a week, Adaxes generates new asymmetric keys used to encrypt and decrypt the authentication data. If a token was encrypted using the previous public key, it cannot be decrypted with the new key.

To remedy the issue, you need to establish a new authentication session and obtain a new security token.

Related questions

Environment: Adaxes REST API, called from ServiceNow. Auth via Adm-Authorization header with a service-account token (search + create work). Target: Entra distribution groups (adm- ... this isn't a role permission gap before pursuing it as an API issue.

asked Jul 29 by ZoomGhost (390 points)
0 votes
1 answer

After a recent upgrade I can no longer access our web portal externally - and only get the following. Sometimes it works for a few minutes but then stops. HTTP Error ... and handling these errors, visit Troubleshoot ASP.NET Core on Azure App Service and IIS.

asked May 22, 2025 by ckelley (60 points)
0 votes
0 answers

Any chance there is support for configuring mail settings in adaxes using HTTP Graph API integration instead of Exchange Online SMTP?

asked Jul 10, 2025 by emeisner (210 points)
0 votes
1 answer

I am attempting to use the script here: https://www.adaxes.com/sdk/REST_AccessControl/ Yet when I run it with $serviceHost = "localhost" ... + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException

asked 4 days ago by AvenuesRecovery (130 points)
0 votes
1 answer

I am trying to build a custom command to add a specific user to a rule based group in adaxes and I am curious if it is something we can use the API to complete?

asked Mar 7, 2025 by Brian (40 points)
0 votes
1 answer