<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay Keycloak login Internal Server Error</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122517232" />
  <subtitle>Liferay Keycloak login Internal Server Error</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122517232</id>
  <updated>2026-04-07T15:52:36Z</updated>
  <dc:date>2026-04-07T15:52:36Z</dc:date>
  <entry>
    <title>RE: RE: Liferay Keycloak login Internal Server Error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122519026" />
    <author>
      <name>Letai Mark</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122519026</id>
    <updated>2024-04-03T19:02:23Z</updated>
    <published>2024-04-03T12:38:48Z</published>
    <summary type="html">&lt;p&gt;The Liferay are running in:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;docker.elastic.co/elasticsearch/elasticsearch:8.8.1&lt;/li&gt;
  &lt;li&gt;liferay/portal:7.4.3.106-ga106&lt;/li&gt;
  &lt;li&gt;nginx:latest (1.25.3)&lt;/li&gt;
  &lt;li&gt;postgres (psql (PostgreSQL) 16.1 (Debian 16.1-1.pgdg120+1))&lt;/li&gt;
  &lt;li&gt;Docker version 25.0.0, build e758fe5&lt;/li&gt;
  &lt;li&gt;docker-compose version 1.29.2 &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  &lt;strong&gt;And the keycloak:&lt;/strong&gt; keycloak/keycloak:latest (24.0.1)&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;This is the error that the liferay provides: &lt;/strong&gt;
&lt;/p&gt;
&lt;p class="x"&gt;
  &lt;strong&gt;
    &lt;span style="font-size: 10.0pt;"&gt;
      &lt;span style="font-family: Aptos , sans-serif;"&gt;HTTPResponse
        httpResponse = httpRequest.send();&lt;br&gt;
        &lt;br&gt; TokenResponse tokenResponse =
        OIDCTokenResponseParser.parse(&lt;br&gt; httpResponse);&lt;br&gt;
        &lt;br&gt; if (tokenResponse instanceof TokenErrorResponse) {&lt;br&gt;
        TokenErrorResponse tokenErrorResponse =&lt;br&gt; (TokenErrorResponse)tokenResponse;&lt;br&gt;
        &lt;br&gt; ErrorObject errorObject = tokenErrorResponse.getErrorObject();&lt;br&gt;
        &lt;br&gt; JSONObject jsonObject = errorObject.toJSONObject();&lt;br&gt;
        &lt;br&gt; throw new OpenIdConnectServiceException.TokenException(&lt;br&gt;
        jsonObject.toString());&lt;br&gt; }&lt;/span&gt;
    &lt;/span&gt;
  &lt;/strong&gt;
  &lt;br&gt;This is the Liferay Log:&lt;/p&gt;
&lt;p class="x"&gt;
  &lt;strong&gt;
    &lt;span style="font-size: 10.0pt;"&gt;
      &lt;span style="font-family: Aptos , sans-serif;"&gt;2024-03-28
        10:52:36.630 ERROR
        [http-nio-8080-exec-1][StatusDisplayContext:83] Error: {}&lt;br&gt;
        2024-03-28 10:52:36.631 DEBUG
        [http-nio-8080-exec-1][StatusDisplayContext:86] null&lt;br&gt;
        com.liferay.portal.security.sso.openid.connect.OpenIdConnectServiceException$TokenException: {}&lt;/span&gt;
    &lt;/span&gt;
  &lt;/strong&gt;
&lt;/p&gt;
&lt;p class="x"&gt;I set up in Liferay the OpenID setting(System and Instansce
  settings as well) and I configurated the Keycloak according to this guide: https://techblog.smc.it/en/2021-10-15/how-to-connect-keycloak-liferay-openid-connect&lt;br&gt;
  &lt;br&gt;  &lt;/p&gt;</summary>
    <dc:creator>Letai Mark</dc:creator>
    <dc:date>2024-04-03T12:38:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay Keycloak login Internal Server Error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122518979" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122518979</id>
    <updated>2024-04-03T12:29:14Z</updated>
    <published>2024-04-03T12:29:13Z</published>
    <summary type="html">&lt;p&gt;Pardon me - Given the level of details you provide (e.g.: zero),
  &amp;quot;works for me&amp;quot; would be an appropriate answer.&lt;/p&gt;
&lt;p&gt;
  &lt;em&gt;Exact&lt;/em&gt; versions, your configuration steps &lt;em&gt;on both
  sides&lt;/em&gt; of the equation, error logs - all are missing. Please give
  as much detail as possible (not limited to the points that I've listed):&lt;/p&gt;
&lt;p&gt;This free support depends on the proper details being provided in the question.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2024-04-03T12:29:13Z</dc:date>
  </entry>
  <entry>
    <title>Liferay Keycloak login Internal Server Error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122517231" />
    <author>
      <name>Letai Mark</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122517231</id>
    <updated>2024-04-02T20:05:58Z</updated>
    <published>2024-04-02T14:30:03Z</published>
    <summary type="html">&lt;p&gt;Hi!&lt;br&gt;
  &lt;br&gt; I have a CE Liferay Portal, and the following error message pops
  up when I login in Keycloak:&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Error:&lt;/strong&gt;Internal Server Error&lt;/p&gt;
&lt;p&gt;An error occurred while accessing the requested resource.&lt;br&gt;
  &lt;br&gt;
  &lt;code&gt;https://dev.footballbenchmark.com/c/portal/login/openidconnect?state=jwM1SCKl-gjXca9L3nnJiu2heVMJOjR_XM4slqCf414&amp;amp;code=720aa559-aef0-4a17-91e2-b5c904c635a0.306139b4-aa7d-4e8c-a454-2641724300b9.9a378ad6-4b6a-4f98-adb8-1cedf1cff894&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;I use a Docker Image of the Liferay Portal.&lt;br&gt; Can someone help
    me with this?&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;Thanks,&lt;br&gt; Mark&lt;/code&gt;
&lt;/p&gt;</summary>
    <dc:creator>Letai Mark</dc:creator>
    <dc:date>2024-04-02T14:30:03Z</dc:date>
  </entry>
</feed>
