On September 1, 2024 6:55 pm, Thomas Skinner wrote:
> Signed-off-by: Thomas Skinner <tho...@atskinner.net>
> ---
>  src/PVE/API2/OpenId.pm | 32 ++++++++++++++++++++++++++++++++
>  src/PVE/Auth/OpenId.pm | 21 +++++++++++++++++++++
>  2 files changed, 53 insertions(+)
> 
> diff --git a/src/PVE/Auth/OpenId.pm b/src/PVE/Auth/OpenId.pm
> index c8e4db9..0e3fdc4 100755
> --- a/src/PVE/Auth/OpenId.pm
> +++ b/src/PVE/Auth/OpenId.pm
> @@ -42,6 +42,24 @@ sub properties {
>           type => 'string',
>           optional => 1,
>       },
> +     "groups-claim" => {
> +         description => "OpenID claim used to retrieve groups with.",
> +         type => 'string',

forgot this part: this should probably have a format to limit valid
values..

> +         optional => 1,
> +     },
> +     "groups-overwrite" => {
> +             description => "All groups will be overwritten for the user on 
> login.",
> +         type => 'boolean',
> +             default => 0,
> +         optional => 1,
> +     },
> +     "groups-replace-character" => {
> +         description => "Character used to replace any invalid characters in 
> groups from provider.",
> +         type => 'string',
> +             pattern => '^[A-Za-z0-9\.\-_]$',
> +             default => '_',
> +         optional => 1,
> +     },
>       prompt => {
>           description => "Specifies whether the Authorization Server prompts 
> the End-User for"
>               ." reauthentication and consent.",
> @@ -73,6 +91,9 @@ sub options {
>       "client-key" => { optional => 1 },
>       autocreate => { optional => 1 },
>       "username-claim" => { optional => 1, fixed => 1 },
> +     "groups-claim" => { optional => 1 },
> +     "groups-overwrite" => { optional => 1 },
> +     "groups-replace-character" => { optional => 1},
>       prompt => { optional => 1 },
>       scopes => { optional => 1 },
>       "acr-values" => { optional => 1 },
> -- 
> 2.39.2
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 
> 


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

Reply via email to