# SAML SSO with Keycloak returns HTTP 500 after fixing clock skew

**URL:** <https://community.netwrix.com/t/saml-sso-with-keycloak-returns-http-500-after-fixing-clock-skew/140703>\
**Category:** Endpoint Protector Discussions & Questions\
**Tags:** epp-server\
**Created:** [August 20, 2026, 5:02pm UTC](https://community.netwrix.com/t/saml-sso-with-keycloak-returns-http-500-after-fixing-clock-skew/140703 "2026-08-20T17:02:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabianb](https://avatars.discourse-cdn.com/v4/letter/f/958977/32.png) [@fabianb](https://community.netwrix.com/u/fabianb)\
**Post date:** [August 20, 2026, 5:02pm UTC](https://community.netwrix.com/t/saml-sso-with-keycloak-returns-http-500-after-fixing-clock-skew/140703/1 "2026-08-20T17:02:08Z")

</div>

### **Setup**

- Endpoint Protector virtual appliance on VMware ESXi
- Keycloak as SAML 2.0 Identity Provider, configured via the Okta profile
- Internal test environment

**What happens**

SSO login fails, and the failure mode changes depending on the appliance clock:

- Appliance clock off by 1h42m: EPP shows the regular SSO error page (“There has been an issue with your Single Sign On Process”).
- Appliance clock synchronised to the IdP (0 seconds difference): EPP returns “Oops! An Error Occurred - The server returned a 500 Internal Server Error”.

Both reproduced twice, each matching the state of the clock.

**What I already checked**

- The clock skew is fixed. The default NTP server ([pool.ntp.org](http://pool.ntp.org)) is not reachable from this network segment, so I replaced it with an internal NTP server under Appliance \> Server Maintenance \> Time Zone. Both clocks now match to the second, verified in UTC on both sides.
- On the Keycloak side, a client session for the Endpoint Protector service is created on every attempt. So the IdP authenticates the user and issues the assertion - the failure happens inside EPP after the assertion is received.
- Identity and attribute matching: four different configurations were tested earlier, all failed identically while the clock was still wrong.

**Questions**

1. Has anyone seen a 500 on the SSO callback with a correctly synchronised clock?
2. Where does the appliance log SAML processing errors when SSH access is not available?

---

<div class="post-metadata">

**Author:** ![Cristian](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@Cristian](https://community.netwrix.com/u/Cristian)\
**Post date:** [August 20, 2026, 9:32pm UTC](https://community.netwrix.com/t/saml-sso-with-keycloak-returns-http-500-after-fixing-clock-skew/140703/2 "2026-08-20T21:32:14Z")

</div>

Hi Fabian!

Thank you for reaching out and welcome to the Netwrix Community!

Please allow me to double check on the scenario you described and I will get back to you on this topic.

---

<div class="post-metadata">

**Author:** ![fabianb](https://avatars.discourse-cdn.com/v4/letter/f/958977/32.png) [@fabianb](https://community.netwrix.com/u/fabianb)\
**Post date:** [August 21, 2026, 9:31am UTC](https://community.netwrix.com/t/saml-sso-with-keycloak-returns-http-500-after-fixing-clock-skew/140703/3 "2026-08-21T09:31:05Z")

</div>

Super Thanks!!

---

<div class="post-metadata">

**Author:** ![Cristian](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@Cristian](https://community.netwrix.com/u/Cristian)\
**Post date:** [September 4, 2026, 11:04pm UTC](https://community.netwrix.com/t/saml-sso-with-keycloak-returns-http-500-after-fixing-clock-skew/140703/4 "2026-09-04T23:04:04Z")

</div>

Hi Fabian!

Apologies for the late reply on this.

After checking internally, given that the issue you raised will require further investigation, our advice for you is to open a Support ticket from the Support Portal, so out Support Team can take a closer look at the issue that you described.

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/netwrix/user_avatar/community.netwrix.com/system/32/3102_2.png) [@system](https://community.netwrix.com/u/system)\
**Post date:** [November 3, 2026, 11:04pm UTC](https://community.netwrix.com/t/saml-sso-with-keycloak-returns-http-500-after-fixing-clock-skew/140703/5 "2026-11-03T23:04:21Z")

</div>

Closed on November 3, 2026, 11:04pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
