# Login Timeout by SSO with external IdP

**URL:** <https://forum.keycloak.org/t/login-timeout-by-sso-with-external-idp/1780>\
**Category:** Getting advice\
**Tags:** authentication, saml\
**Created:** [March 20, 2020, 9:41am UTC](https://forum.keycloak.org/t/login-timeout-by-sso-with-external-idp/1780 "2020-03-20T09:41:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jominga](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jominga](https://forum.keycloak.org/u/jominga)\
**Post date:** [March 20, 2020, 9:41am UTC](https://forum.keycloak.org/t/login-timeout-by-sso-with-external-idp/1780/1 "2020-03-20T09:41:59Z")

</div>

Hello,

I am implementing a SSO option using SAML with an external IdP. If I inspect the browser and see the received SAML response after I click on the SSO button I can see the authentication data that I need (such as the name of the user and the email), so the communication with the IdP works just fine.

However Keycloak does not perform the login and shows me a page where it says: “We are sorry… Login timeout, Please log in again.”, and no new user is registered. The login timeout for tokens in my realm is set to 30 minutes.

Do you guys know how I can fix this issue?

---

<div class="post-metadata">

**Author:** ![albertomusetti](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@albertomusetti](https://forum.keycloak.org/u/albertomusetti)\
**Post date:** [June 1, 2020, 9:30pm UTC](https://forum.keycloak.org/t/login-timeout-by-sso-with-external-idp/1780/2 "2020-06-01T21:30:01Z")

</div>

I follow, I’m facing the same issue.  
The SAML response has time in UTC format, the keycloak server is in CEST.

---

<div class="post-metadata">

**Author:** ![jominga](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jominga](https://forum.keycloak.org/u/jominga)\
**Post date:** [June 8, 2020, 7:34am UTC](https://forum.keycloak.org/t/login-timeout-by-sso-with-external-idp/1780/3 "2020-06-08T07:34:02Z")

</div>

The problem was that when my computer was hibernating the internal clock of the Docker containers stopped. So the time of Keycloak and of the external IdP did not match and hence the timeout error.  
Restarting the container fixed the issue.
