public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Markus Frank <m.frank@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-gui v7 12/12] add realms panel to user management
Date: Wed, 26 Feb 2025 12:38:48 +0100	[thread overview]
Message-ID: <20250226113848.42829-13-m.frank@proxmox.com> (raw)
In-Reply-To: <20250226113848.42829-1-m.frank@proxmox.com>

Make the realm configuration available in PMG and disable LDAP/AD
realms for now and use the name oidc instead of openid.

Signed-off-by: Markus Frank <m.frank@proxmox.com>
---
v7: added storeBaseUrl

 js/UserManagement.js |  8 ++++++++
 js/Utils.js          | 16 ++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/js/UserManagement.js b/js/UserManagement.js
index 65fabbf..f6ada1b 100644
--- a/js/UserManagement.js
+++ b/js/UserManagement.js
@@ -34,5 +34,13 @@ Ext.define('PMG.UserManagement', {
 	    itemId: 'pop',
 	    iconCls: 'fa fa-reply-all',
 	},
+	{
+	    xtype: 'pmxAuthView',
+	    title: gettext('Realms'),
+	    itemId: 'realms',
+	    baseUrl: '/access/auth-realm',
+	    storeBaseUrl: '/access/auth-realm',
+	    iconCls: 'fa fa-address-book-o',
+	},
     ],
 });
diff --git a/js/Utils.js b/js/Utils.js
index 9b5f054..cd862e1 100644
--- a/js/Utils.js
+++ b/js/Utils.js
@@ -851,6 +851,22 @@ Ext.define('PMG.Utils', {
     constructor: function() {
 	var me = this;
 
+	// use oidc instead of openid
+	Proxmox.Schema.authDomains.oidc = Proxmox.Schema.authDomains.openid;
+	Proxmox.Schema.authDomains.oidc.useTypeInUrl = false;
+	delete Proxmox.Schema.authDomains.openid;
+
+	// Disable LDAP/AD as a realm until LDAP/AD login is implemented
+	Proxmox.Schema.authDomains.ldap.add = false;
+	Proxmox.Schema.authDomains.ad.add = false;
+
+	Proxmox.Schema.authDomains.pam.edit = false;
+	Proxmox.Schema.authDomains.pmg = {
+	    add: false,
+	    edit: false,
+	    sync: false,
+	};
+
 	// do whatever you want here
 	Proxmox.Utils.override_task_descriptions({
 	    applycustomscores: ['', gettext('Apply custom SpamAssassin scores')],
-- 
2.39.5



_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel


      parent reply	other threads:[~2025-02-26 11:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-26 11:38 [pmg-devel] [PATCH perl-rs/pmg-api/widget-toolkit/pmg-gui v7 0/12] fix #3892: OpenID Connect Markus Frank
2025-02-26 11:38 ` [pmg-devel] [PATCH proxmox-perl-rs v7 1/12] move openid code from pve-rs to common Markus Frank
2025-02-26 11:38 ` [pmg-devel] [PATCH proxmox-perl-rs v7 2/12] remove empty PMG::RS::OpenId package to avoid confusion Markus Frank
2025-02-26 11:38 ` [pmg-devel] [PATCH pmg-api v7 3/12] config: add plugin system for authentication realms Markus Frank
2025-02-26 11:38 ` [pmg-devel] [PATCH pmg-api v7 4/12] config: add oidc type authentication realm Markus Frank
2025-02-26 11:38 ` [pmg-devel] [PATCH pmg-api v7 5/12] api: add/update/remove authentication realms like in PVE Markus Frank
2025-02-26 11:38 ` [pmg-devel] [PATCH pmg-api v7 6/12] api: oidc login similar to PVE Markus Frank
2025-02-26 11:38 ` [pmg-devel] [PATCH pmg-api v7 7/12] api: users: create user with a specified realm Markus Frank
2025-02-26 12:51   ` Mira Limbeck
2025-02-26 11:38 ` [pmg-devel] [PATCH widget-toolkit v7 08/12] fix: window: AuthEditBase: rename variable 'realm' to 'type' Markus Frank
2025-02-26 11:38 ` [pmg-devel] [PATCH widget-toolkit v7 09/12] panel: AuthView: change API path in pmx-domains model Markus Frank
2025-02-26 11:38 ` [pmg-devel] [PATCH widget-toolkit v7 10/12] form: RealmComboBox: add option to change the API path Markus Frank
2025-02-26 11:38 ` [pmg-devel] [PATCH pmg-gui v7 11/12] login: add option to login with OIDC realm Markus Frank
2025-02-26 11:38 ` Markus Frank [this message]

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=20250226113848.42829-13-m.frank@proxmox.com \
    --to=m.frank@proxmox.com \
    --cc=pmg-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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal