<?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>OAuth2 Authorization from a flutter App</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119954901" />
  <subtitle>OAuth2 Authorization from a flutter App</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119954901</id>
  <updated>2026-06-22T20:12:47Z</updated>
  <dc:date>2026-06-22T20:12:47Z</dc:date>
  <entry>
    <title>OAuth2 Authorization from a flutter App</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119954900" />
    <author>
      <name>Andre Kreienbring</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119954900</id>
    <updated>2020-09-16T16:50:54Z</updated>
    <published>2020-09-16T16:50:54Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Following the rules I've set up the OAuth2 Administration to allow for Authorization Code and / or Client Credentials.&lt;br&gt;Now I want to authorize my flutter mobile app to access my JAX-RS webservices.&lt;br&gt;Looks as if the authorization flow breaks because of this messages in the logs. My development server is NOT https secured.&lt;br&gt;&lt;pre&gt;&lt;code&gt;2020-09-16 13:45:55.007 WARN&amp;amp;nbsp; [default task-67][AbstractOAuthService:107] Unsecure HTTP, HTTPS is recommended
2020-09-16 13:57:55.517 WARN&amp;amp;nbsp; [default task-72][code_jsp:154] {code="404", msg="Not Found", uri=/p_p_id=com_liferay_oauth2_provider_web_internal_portlet_OAuth2AuthorizePortlet&amp;amp;amp;p_p_state=maximized}
&lt;/code&gt;&lt;/pre&gt;Does this mean that the AuthorizePorlet is not available over the http protocol? Or is there some way to disable this during development?&lt;br&gt;There's also another problem. Flutter / Android apps seem to have a hard time intercepting HTTP(S) redirection calls from the OAuth provider. (The only kind of OAuth2 redirects allowed by Liferay)&lt;br&gt;This article explains why:&lt;br&gt; &lt;a href="https://dev.to/okrad/oauth2client-implement-oauth2-clients-with-flutter-4jjl"&gt;https://dev.to/okrad/oauth2client-implement-oauth2-clients-with-flutter-4jjl&lt;/a&gt; &lt;br&gt;I created a feature request for this:&lt;br&gt;&lt;a href="https://issues.liferay.com/browse/LPS-121023"&gt;https://issues.liferay.com/browse/LPS-121023&lt;/a&gt;&lt;br&gt;How to get this OAuth2 stuff working with Dart / Flutter?&lt;br&gt;There's this flutter package:&lt;br&gt;&lt;a href="https://pub.dev/packages/flutter_liferay_oauth"&gt;https://pub.dev/packages/flutter_liferay_oauth&lt;/a&gt;&lt;br&gt; that could rescue me, but unfortunately it seems not to work below Android API Level 28 and suffers obviously from the error / warning&amp;nbsp; I stated above.&lt;br&gt;Has anyone, creating a mobile SPA, got this working with Liferay 7.3 and can provide me with a hint?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Andre Kreienbring</dc:creator>
    <dc:date>2020-09-16T16:50:54Z</dc:date>
  </entry>
</feed>
