]>
git.proxmox.com Git - pve-access-control.git/blob - src/PVE/Auth/OpenId.pm
1 package PVE
::Auth
::OpenId
;
8 use PVE
::Cluster
qw(cfs_register_file cfs_read_file cfs_write_file cfs_lock_file);
10 use base
qw(PVE::Auth::Plugin);
19 description
=> "OpenID Issuer Url",
24 description
=> "OpenID Client ID",
29 description
=> "OpenID Client Key",
35 description
=> "Automatically create users if they do not exist.",
41 description
=> "OpenID claim used to generate the unique username.",
52 "client-key" => { optional
=> 1 },
53 autocreate
=> { optional
=> 1 },
54 "username-claim" => { optional
=> 1, fixed
=> 1 },
55 default => { optional
=> 1 },
56 comment
=> { optional
=> 1 },
60 sub authenticate_user
{
61 my ($class, $config, $realm, $username, $password) = @_;
63 die "OpenID realm does not allow password verification.\n";