Proxmox Authentication
Adding an OIDC provider (Auth0)
- Create an application in Auth0
- Configure the application in Auth0 (set the login and callback URIs to the root URL of the Proxmox instance)
- Create a new oidc realm in Proxmox.
The
username-claimflag should be set to the claim that will be used as the username in Proxmox. This can be any claim returned by the OIDC provider, usuallysub,username,emailornickname. Note that the URLissuer-urlneeds to be set to the Auth0 domain with the slash at the end (this may only be necessary for Auth0, haven't tried other providers yet).
pveum realm add auth0-oidc --type openid --issuer-url https://*yourinstance*.eu.auth0.com/ --client-id *clientId* --client-key *clientSecret* --username-claim nickname
- Create a user in the new realm. The name of the user should be the value of the selected claim name in Auth0 (in this case,
nickname). The user can be added to groups by passing the optional-groupsflag.
pveum user add testuser@auth0-oidc [-groups group1,group2]
- The new realm should appear on the login screen, and the user should be able to log in using the Auth0 credentials.