From: "Shan Shaji" <s.shaji@proxmox.com>
To: "Azharul Haque" <haque@azharul.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH flutter-frontend v2 1/2] fix #4281: android: register OpenID Connect callback activity
Date: Thu, 20 Aug 2026 16:01:15 +0200 [thread overview]
Message-ID: <DKTTQV6JTV4F.EI0KO3R5QW1B@proxmox.com> (raw)
In-Reply-To: <20260810144713.75806-7-haque@azharul.com>
On Mon Aug 10, 2026 at 4:47 PM CEST, Azharul Haque wrote:
> proxmox_login_manager's OpenID login flow (see the corresponding
> patch there) opens the provider's authorization URL via
> flutter_web_auth_2 and expects the provider's redirect back to
> pveauth://openid-callback to be captured by the app. On Android this
^-- IMHO, the new scheme could be added in this patch itself. That way
the PATCH flutter-frontend 2/2 can be dropped.
> requires explicitly registering flutter_web_auth_2's CallbackActivity
> for that scheme; add it, following the plugin's setup instructions.
> Also set android:taskAffinity="" on both activities as recommended
> for this flutter_web_auth_2 version, to avoid a stray task appearing
> after the callback returns control to MainActivity.
>
> No changes needed on iOS: ASWebAuthenticationSession handles the
> custom-scheme redirect without any Info.plist registration.
>
> linux/flutter/generated_plugin_registrant.cc, generated_plugins.cmake
> and pubspec.lock are regenerated as a consequence of the new
> transitive dependency on flutter_web_auth_2 (and, on Linux/Windows,
> its desktop_webview_window fallback).
I think it would be better to seperate the android .xml config changes
and the generated changes into its own separate patches.
>
> Signed-off-by: Azharul Haque <haque@azharul.com>
> ---
> android/app/src/main/AndroidManifest.xml | 16 ++
> linux/flutter/generated_plugin_registrant.cc | 8 +
> linux/flutter/generated_plugins.cmake | 2 +
> pubspec.lock | 184 +++++++++++--------
> 4 files changed, 138 insertions(+), 72 deletions(-)
>
> diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
> index 66135eb..884fedd 100644
> --- a/android/app/src/main/AndroidManifest.xml
> +++ b/android/app/src/main/AndroidManifest.xml
> @@ -12,6 +12,7 @@
> android:name="com.proxmox.app.pve_flutter_frontend.MainActivity"
> android:exported="true"
> android:launchMode="singleTop"
> + android:taskAffinity=""
> android:theme="@style/LaunchTheme"
> android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
> android:hardwareAccelerated="true"
> @@ -23,6 +24,21 @@
> </intent-filter>
> </activity>
>
> + <!-- Captures the OpenID Connect provider's redirect back into the app
> + for realms configured with an OAuth/OIDC login, see
> + flutter_web_auth_2 and ProxmoxLoginForm's OpenID login flow. -->
> + <activity
> + android:name="com.linusu.flutter_web_auth_2.CallbackActivity"
> + android:exported="true"
> + android:taskAffinity="">
> + <intent-filter android:label="flutter_web_auth_2">
> + <action android:name="android.intent.action.VIEW" />
> + <category android:name="android.intent.category.DEFAULT" />
> + <category android:name="android.intent.category.BROWSABLE" />
> + <data android:scheme="pveauth" />
This config changes can itself be another patch.
> + </intent-filter>
> + </activity>
> +
> <!-- This is used by Flutter to generate GeneratedPluginRegistrant.java -->
> <meta-data
> android:name="flutterEmbedding"
[snip]
> sdks:
> - dart: ">=3.10.3 <4.0.0"
> - flutter: ">=3.38.4"
> + dart: ">=3.12.0 <4.0.0"
> + flutter: ">=3.44.0"
As I mentioned in my previous reply we are using flutter v3.41
next prev parent reply other threads:[~2026-08-20 14:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 5:40 [PATCH 0/2] android: register OpenID Connect callback activity for #4281 Azharul Haque
2026-08-10 5:40 ` [PATCH 1/2] fix #4281: android: register OpenID Connect callback activity Azharul Haque
2026-08-10 5:40 ` [PATCH 2/2] fix #4281: android: match renamed OpenID callback scheme Azharul Haque
2026-08-10 13:59 ` [PATCH 0/2] android: register OpenID Connect callback activity for #4281 Shan Shaji
2026-08-10 14:47 ` [PATCH v2 0/7] app: implement OpenID Connect (OAuth) realm login (#4281) Azharul Haque
2026-08-10 14:47 ` [PATCH dart-api-client v2 1/2] fix #4281: access: add `type` property to `PveAccessDomainModel` Azharul Haque
2026-08-20 9:17 ` Shan Shaji
[not found] ` <CAFCWXbiQxG4p2U+beMjSi7Gaz5qC-vCzXW1AH3Ys-ApOW0S83w@mail.gmail.com>
2026-08-20 14:39 ` Shan Shaji
[not found] ` <CAFCWXbhnW0o1VcUimwk6pUB3VqCaQw31BQpuHjDtKF8LGeB-fg@mail.gmail.com>
2026-08-21 8:00 ` Shan Shaji
2026-08-10 14:47 ` [PATCH dart-api-client v2 2/2] fix #4281: access: add OpenID Connect auth-url/login helpers Azharul Haque
2026-08-20 9:48 ` Shan Shaji
2026-08-10 14:47 ` [PATCH login-manager v2 1/3] fix #4281: ui: add OpenID Connect login flow to login form Azharul Haque
2026-08-20 12:31 ` Shan Shaji
2026-08-10 14:47 ` [PATCH login-manager v2 2/3] fix #4281: ui: fix stale Continue button state on realm switch Azharul Haque
2026-08-10 14:47 ` [PATCH login-manager v2 3/3] fix #4281: ui: use a namespaced OpenID callback scheme Azharul Haque
2026-08-20 14:28 ` Shan Shaji
2026-08-10 14:47 ` [PATCH flutter-frontend v2 1/2] fix #4281: android: register OpenID Connect callback activity Azharul Haque
2026-08-20 14:01 ` Shan Shaji [this message]
2026-08-10 14:47 ` [PATCH flutter-frontend v2 2/2] fix #4281: android: match renamed OpenID callback scheme Azharul Haque
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DKTTQV6JTV4F.EI0KO3R5QW1B@proxmox.com \
--to=s.shaji@proxmox.com \
--cc=haque@azharul.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox