<?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>How to create a special login page used ONLY for OAuth2 Authentication/Auth</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120584405" />
  <subtitle>How to create a special login page used ONLY for OAuth2 Authentication/Auth</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120584405</id>
  <updated>2026-04-06T03:53:27Z</updated>
  <dc:date>2026-04-06T03:53:27Z</dc:date>
  <entry>
    <title>RE: RE: How to create a special login page used ONLY for OAuth2 Authenticat</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120586742" />
    <author>
      <name>Dave Kliczbor</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120586742</id>
    <updated>2021-02-03T07:12:54Z</updated>
    <published>2021-02-03T07:12:54Z</published>
    <summary type="html">&lt;p&gt;Thanks for answering, but that does not help. I am redirected to the
  OAuth2 authorization page then, yes, but the authorization portlet
  then complains about missing the mandatory OAuth2 parameters (and
  since at least one of their values are cryptographic hashes that vary
  for each request, I cannot add them statically in the config).&lt;/p&gt;
&lt;p&gt;I also tried various other redirects, including the OAuth2 endpoints
  at /o/oauth2/, I tried them url-encoded or not, no luck. Using
  redirect seems like a viable idea, but either there is no suitable url
  to redirect to, or I haven't found it yet.&lt;/p&gt;</summary>
    <dc:creator>Dave Kliczbor</dc:creator>
    <dc:date>2021-02-03T07:12:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to create a special login page used ONLY for OAuth2 Authentication/</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120582491" />
    <author>
      <name>Marcial Calvo Valenzuela</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120582491</id>
    <updated>2021-02-02T21:21:56Z</updated>
    <published>2021-02-02T21:20:59Z</published>
    <summary type="html">&lt;p&gt;Can you consider to use &lt;em&gt;
    &lt;strong&gt;/c/portal/login&lt;/strong&gt;&lt;/em&gt; +&lt;em&gt;
    &lt;strong&gt; redirect parameter&lt;/strong&gt;&lt;/em&gt; to redirect the user to
  the desired url?&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;#You can set the redirect manually from another application by appending
# the &amp;quot;redirect&amp;quot; parameter in a url that looks like this:
# /c/portal/login?redirect=%2Fgroup%2Femployees%2Fcalendar. This url will
# redirect the user to the path &amp;quot;/group/employees/calendar&amp;quot; upon successful
# login.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Check &lt;a href="https://github.com/liferay/liferay-portal/blob/7.3.x/portal-impl/src/portal.properties#L3608"&gt;https://github.com/liferay/liferay-portal/blob/7.3.x/portal-impl/src/portal.properties#L3608&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;</summary>
    <dc:creator>Marcial Calvo Valenzuela</dc:creator>
    <dc:date>2021-02-02T21:20:59Z</dc:date>
  </entry>
  <entry>
    <title>How to create a special login page used ONLY for OAuth2 Authentication/Auth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120584404" />
    <author>
      <name>Dave Kliczbor</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120584404</id>
    <updated>2021-02-02T18:57:19Z</updated>
    <published>2021-02-02T15:51:57Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm using Liferay 7.3 and am trying to create a special login page
  that should be ONLY used during OAuth2 Authorization.&lt;/p&gt;
&lt;p&gt;In &lt;em&gt;Instance Settings -&amp;gt; OAuth2, &lt;/em&gt;I can set two URLs, one
  for authorization, one for login. &lt;a
    href="https://help.liferay.com/hc/en-us/articles/360017897252-OAuth2-Scopes"&gt;Creating
    a page for Authorization&lt;/a&gt; works fine -- if I create such a page,
  I can set a minimalistic theme on that page and it is used nicely.&lt;/p&gt;
&lt;p&gt;But I cannot use any other page than &amp;quot;/c/portal/login&amp;quot; as
  login page -- I create a hidden widget page, place a WebContent with a
  nice welcome message plus the login widget on it, configure it to use
  a minimalistic theme without header, navigation and footer, and then
  tell OAuth2 to use that page (by setting e.g.
  /web/guest/external-application-login-dialog as Login URL in the
  OAuth2 instance settings). That works initially ... but then the
  OAuth2 authorization flow does not continue after logging in; instead
  it redirects to itself: I now see my welcome message sans login widget
  (no surprise there, since I did log in) -- but I am NOT redirected to
  the Authorization page. I'm stuck in the middle of the OAuth2
  authorization flow, because my custom page does not know the next step.&lt;/p&gt;
&lt;p&gt;Using &amp;quot;/c/portal/login&amp;quot; here does work, but then the
  default login page &amp;quot;/web/guest/home&amp;quot; is being used. And that
  one contains navigation, header, footer... stuff that should NOT be
  displayed in an OAuth2 login dialog.&lt;/p&gt;
&lt;p&gt;How do I get around that? How do I create a special login page with
  admin-editable content that is ONLY used during OAuth2 Authorization?&lt;/p&gt;</summary>
    <dc:creator>Dave Kliczbor</dc:creator>
    <dc:date>2021-02-02T15:51:57Z</dc:date>
  </entry>
</feed>
