<?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>After auth.login.url was set, got a warning - Cannot call sendRedirect()</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121916883" />
  <subtitle>After auth.login.url was set, got a warning - Cannot call sendRedirect()</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121916883</id>
  <updated>2026-04-06T17:48:30Z</updated>
  <dc:date>2026-04-06T17:48:30Z</dc:date>
  <entry>
    <title>After auth.login.url was set, got a warning - Cannot call sendRedirect()</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121916882" />
    <author>
      <name>David Wright</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121916882</id>
    <updated>2023-07-10T18:19:09Z</updated>
    <published>2023-07-10T18:03:30Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;br&gt;
  &lt;br&gt; I am using Liferay 7.0 fp 101&lt;br&gt;
  &lt;br&gt; I would like to have our users directly forwarded to an OIDC
  provider by setting:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;auth.login.url=/home/-/login/openid_connect_request?p_p_state=maximized&amp;amp;_com_liferay_login_web_portlet_LoginPortlet_saveLastPath=false&amp;amp;_com_liferay_login_web_portlet_LoginPortlet_OPEN_ID_CONNECT_PROVIDER_NAME=XXXX&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It was working fin in the frontend, but each time a user login, I got
  a warning in the log:&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;
    &lt;br&gt; WARN &lt;br&gt; [https-jsse-nio-443-exec-3][PortalImpl:6966]
    java.lang.IllegalStateException: Cannot call sendRedirect() after
    the response has been committed&lt;br&gt; It was working, but each time a
    user login, I got a warning in the log:&lt;br&gt;  &lt;/p&gt;
&lt;/blockquote&gt;</summary>
    <dc:creator>David Wright</dc:creator>
    <dc:date>2023-07-10T18:03:30Z</dc:date>
  </entry>
</feed>
