[pmg-devel] [PATCH pmg-api/pmg-gui v4 0/3] add default realm option and OIDC configuration panel

Christoph Heiss c.heiss at proxmox.com
Thu Mar 20 10:36:24 CET 2025


Tested this with a up-to-date Keycloak.

Checked that upon first login of users, they get assigned the correct
role - for both fixed role assignments and from a OIDC claim.

Also made sure that the default realm selector works as intended - after
clearing `localStorage`, the correct default realm is shown.

W.r.t patch #3: Extending the `AuthEditOpenId` panel from
proxmox-widget-toolkit would probably be more work than its worth,
FWICS? No hard feelings from my side, looking at the required changes,
just that duplicating mostly-similar code is always bit of a PITA, if it
can be avoided.

And there isn't any documentation about the role assignment feature yet,
right? That should be done too, although a separate patch would be
enough too IMO, in case you don't respin this series.
Just a short explanation and mentioning the available values for the
role assignment from an OIDC claim.

In any case, please consider this series:

Tested-by: Christoph Heiss <c.heiss at proxmox.com>
Reviewed-by: Christoph Heiss <c.heiss at proxmox.com>

On Wed Mar 19, 2025 at 2:29 PM CET, Markus Frank wrote:
> v4:
> * removed the default value of the realm field in the LoginView so that
>   the default realm is automatically selected.
>
> v3:
> * Patch 1/3 and 2/3 are new and allow the user to set the default realm.
> * see more v3 changes in Patch 3/3
>
>
> pmg-api:
>
> Markus Frank (1):
>   Auth Plugin: stop forcing the default realm to be the pmg realm
>
>  src/PMG/Auth/Plugin.pm | 2 --
>  1 file changed, 2 deletions(-)
>
>
>
> pmg-gui:
>
> Markus Frank (2):
>   realms: enable default realm support
>   add OIDC configuration panel for PMG
>
>  js/AuthEditOIDC.js   | 244 +++++++++++++++++++++++++++++++++++++++++++
>  js/LoginView.js      |   1 -
>  js/Makefile          |   1 +
>  js/UserManagement.js |   1 +
>  js/Utils.js          |  17 +--
>  5 files changed, 257 insertions(+), 7 deletions(-)
>  create mode 100644 js/AuthEditOIDC.js





More information about the pmg-devel mailing list