[pdm-devel] [PATCH yew-comp v2 4/5] auth edit openid: add a default realm checkbox

Shannon Sterz s.sterz at proxmox.com
Fri Oct 17 15:57:59 CEST 2025


so that openid realms can be set as default realms

Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
---
 src/auth_edit_openid.rs | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/auth_edit_openid.rs b/src/auth_edit_openid.rs
index 5c29e15..8968ea1 100644
--- a/src/auth_edit_openid.rs
+++ b/src/auth_edit_openid.rs
@@ -106,10 +106,7 @@ fn render_input_form(form_ctx: FormContext, props: AuthEditOpenID) -> Html {
                 .submit(!is_edit),
         )
         .with_right_field(tr!("Autocreate Users"), Checkbox::new().name("autocreate"))
-        .with_field(
-            tr!("Client ID"),
-            Field::new().name("client-id").required(true),
-        )
+        .with_field(tr!("Default Realm"), Checkbox::new().name("default"))
         .with_right_field(
             tr!("Username Claim"),
             Combobox::new()
@@ -120,13 +117,17 @@ fn render_input_form(form_ctx: FormContext, props: AuthEditOpenID) -> Html {
                 .placeholder(tr!("Default"))
                 .items(username_claim_items),
         )
-        .with_field(tr!("Client Key"), Field::new().name("client-key"))
+        .with_field(
+            tr!("Client ID"),
+            Field::new().name("client-id").required(true),
+        )
         .with_right_field(
             tr!("Scopes"),
             Field::new()
                 .name("scopes")
                 .placeholder(tr!("Default") + " (" + &tr!("email profile") + ")"),
         )
+        .with_field(tr!("Client Key"), Field::new().name("client-key"))
         .with_right_field(
             tr!("Prompt"),
             Combobox::new()
-- 
2.47.3





More information about the pdm-devel mailing list