From: "Shannon Sterz" <s.sterz@proxmox.com>
To: "Shannon Sterz" <s.sterz@proxmox.com>, <yew-devel@lists.proxmox.com>
Subject: Re: [yew-devel] [PATCH yew-comp 0/2] openid and default realm support in login panel
Date: Thu, 09 Oct 2025 11:56:42 +0200 [thread overview]
Message-ID: <DDDPA116I141.UOHO2PPNNJ7I@proxmox.com> (raw)
In-Reply-To: <20251008151936.386950-1-s.sterz@proxmox.com>
On Wed Oct 8, 2025 at 5:19 PM CEST, Shannon Sterz wrote:
> these patches add support for handling the default realm and openid
> login flow for the login panel.
>
> note that we already shipped the pve-yew-mobile-gui without support for
> openid login flows. so bumping that with this applied would be helpful
> for users that want to use the new mobile gui with an openid realm.
>
one small note about this: this patch series does not play as nicely
with the consent text implemented in the mobile gui as the desktop ui
does with its implementation. users would have to click the "OK" button
twice. once before starting the openid flow and a second time after
being redirected.
we could expose the helper that parses the search parameters in
`utils.rs`. then yew-mobile-gui could query the search parameters, if
they are there render the LoginPanel instead of showing the consent text
again. so more or less the same approach to the one we use in our
javascript front-ends. this would safe users from having to submit the
consent text twice.
also small note on that helper: while i could have used the url crate
[1] to parse the search parameters there, i already had the manual
approach outlined there implemented. since it saved me the hassle of
dealing with an extra `Result` i stuck to it. i can adapt this in a v2
if desired, though.
would still appreciate some feedback on the general approach used here.
thanks!
[1]: https://docs.rs/url/latest/url/struct.Url.html#method.query_pairs
> Shannon Sterz (2):
> login_panel/realm_selector: use default realm provided by api
> login_panel/realm_selector: add support for openid realm logins
>
> src/login_panel.rs | 327 +++++++++++++++++++++++++++++++++---------
> src/realm_selector.rs | 85 ++++++++++-
> 2 files changed, 340 insertions(+), 72 deletions(-)
>
> --
> 2.47.3
_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel
next prev parent reply other threads:[~2025-10-09 9:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-08 15:19 Shannon Sterz
2025-10-08 15:19 ` [yew-devel] [PATCH yew-comp 1/2] login_panel/realm_selector: use default realm provided by api Shannon Sterz
2025-10-08 15:19 ` [yew-devel] [PATCH yew-comp 2/2] login_panel/realm_selector: add support for openid realm logins Shannon Sterz
2025-10-09 10:14 ` Shannon Sterz
2025-10-09 9:56 ` Shannon Sterz [this message]
2025-10-14 13:32 ` [yew-devel] Superseded: Re: [PATCH yew-comp 0/2] openid and default realm support in login panel Shannon Sterz
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=DDDPA116I141.UOHO2PPNNJ7I@proxmox.com \
--to=s.sterz@proxmox.com \
--cc=yew-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.