public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH 0/3] ui: implement OpenID Connect login flow for #4281
@ 2026-08-10  5:39 Azharul Haque
  2026-08-10  5:39 ` [PATCH 1/3] fix #4281: ui: add OpenID Connect login flow to login form Azharul Haque
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Azharul Haque @ 2026-08-10  5:39 UTC (permalink / raw)
  To: pve-devel; +Cc: haque

The native Flutter "Proxmox VE Companion" app never implemented OpenID
Connect / OAuth realm login (bug #4281[0]): selecting an OAuth realm
just showed username/password fields that could never work.

This series adds the login-form side of OIDC support:

  - hide username/password fields for OpenID realms and drive the
    OAuth flow via flutter_web_auth_2 (system browser /
    ASWebAuthenticationSession on iOS, Chrome Custom Tabs on
    Android -- deliberately not an in-app webview)
  - fix a stale Continue button enabled/disabled state when switching
    realms mid-flow
  - namespace the OpenID redirect scheme under Proxmox's own reserved
    com.proxmox.* package prefix, to avoid custom-URL-scheme
    collisions with other apps on Android

Depends on the `type` property added to PveAccessDomainModel in the
companion proxmox_dart_api_client series. A further companion series
to pve_flutter_frontend registers the Android-side callback activity
for the scheme used here; no iOS-side wiring is required, since
ASWebAuthenticationSession resolves the custom-scheme redirect at
runtime without a static declaration.

Verified end-to-end against a real PVE server with an Authentik OIDC
realm, on both Android and iOS.

[0] https://bugzilla.proxmox.com/show_bug.cgi?id=4281

Azharul Haque (3):
  fix #4281: ui: add OpenID Connect login flow to login form
  fix #4281: ui: fix stale Continue button state on realm switch
  fix #4281: ui: use a namespaced OpenID callback scheme

 lib/proxmox_login_form.dart | 451 ++++++++++++++++++++++++------------
 pubspec.lock                | 160 +++++++++++--
 pubspec.yaml                |   1 +
 3 files changed, 441 insertions(+), 171 deletions(-)

-- 
2.50.1 (Apple Git-155)




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-10 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-10  5:39 [PATCH 0/3] ui: implement OpenID Connect login flow for #4281 Azharul Haque
2026-08-10  5:39 ` [PATCH 1/3] fix #4281: ui: add OpenID Connect login flow to login form Azharul Haque
2026-08-10  5:39 ` [PATCH 2/3] fix #4281: ui: fix stale Continue button state on realm switch Azharul Haque
2026-08-10  5:39 ` [PATCH 3/3] fix #4281: ui: use a namespaced OpenID callback scheme Azharul Haque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal