> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/troubleshooting-and-resources/armory/general/authentication-timeout-results-in-401-error.md).

# Authentication Timeout Results in 401 Error

### Issue <a href="#issue" id="issue"></a>

You may encounter the following error when a user attempts to login:

```
{
  error: "Unauthorized",
  message: "Authentication Failed: Error validating SAML message",
  status: 401,
  timestamp: 1553109495710
}
```

### Cause <a href="#cause" id="cause"></a>

This issue occurs because of a known issue in Spring. Spinnaker does not accept SAML tokens signed by a user who authenticated more than 2 hours ago even if your authentication system allows it.
