Proxmox
Sign in to Proxmox VE with Pocket ID.
Replace proxmox.example.com with the URL of your Proxmox instance and id.example.com with the URL of your Pocket ID instance.
Create the client in Pocket ID
Section titled “Create the client in Pocket ID”- In Pocket ID, open Administration → OIDC Clients and click Add OIDC Client.
- Enter a name such as
Proxmoxand add the callback URLhttps://proxmox.example.com. - Click Create and copy the Client ID and the Client secret. The client secret is only shown once.
- On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
Configure Proxmox
Section titled “Configure Proxmox”- Open the Proxmox console and navigate to Datacenter → Permissions → Realms.
- Add a new OpenID Connect Server realm.
- Enter
https://id.example.comfor the Issuer URL. - Enter a name for the realm of your choice, for example
PocketID. - Paste the Client ID from Pocket ID into the Client ID field in Proxmox.
- Paste the Client secret from Pocket ID into the Client Key field in Proxmox.
- (Optional) Check the Default box if you want this to be the default realm Proxmox uses when signing in.
- Check the Autocreate Users checkbox. This automatically creates users in Proxmox if they don’t exist.
- Select
usernamefor the Username Claim dropdown. This is a personal preference and controls how the username is shown, for exampleusername = username@PocketIDoremail = username@example@PocketID. - Leave the rest as defaults and click OK to save the new realm.
- Sign in to Proxmox with a Pocket ID user to autocreate the user account.
User permissions
Section titled “User permissions”For individual standalone user management (without groups):
- Navigate to Datacenter → Permissions.
- Click Add and select User Permission.
- Set Path to
/for the entire datacenter or specify a specific VM or container path. - Select the newly created
YourPocketUsername@PocketIDaccount. - Set Role to
Administratorfor this account.
Group permissions
Section titled “Group permissions”This part is optional. If you want to restrict access to specific groups and allow specific roles based on user groups, follow these steps.
In Pocket ID
Section titled “In Pocket ID”- Open Administration → User Groups and click Add Group to create two groups, for example
Proxmox UsersandProxmox Admins. - Add the users you want to allow access to Proxmox to these groups.
- On the
Proxmoxclient’s Access tab, select theProxmox UsersandProxmox Adminsgroups under Allowed User Groups and save.
In Proxmox
Section titled “In Proxmox”- In Proxmox, edit the
PocketIDrealm you created earlier. - Set Scope to
openid profile email groups. - Set Group Claim to
groupsand save the realm. - Check the Autocreate Groups checkbox to have Proxmox automatically create groups based on the groups in Pocket ID.
- Sign in to Proxmox with a user that is in the
Proxmox UsersorProxmox Adminsgroup. - You should now see the user groups in Proxmox, and you can assign permissions:
- Navigate to Datacenter → Permissions.
- Click Add and select Group Permission.
- Set Path to
/for the entire datacenter or specify a specific VM or container path. - Select the
Proxmox Users@PocketIDorProxmox Admins@PocketIDgroup. - Set Role to
PVEAuditforProxmox Users@PocketID, andAdministratorforProxmox Admins@PocketID.