Patchmon
Configure OIDC authentication for Patchmon
The following example variables are used, and should be replaced with your actual URLs.
patchmon.example.com(The URL of your patchmon frontend instance.)id.example.com(The URL of your Pocket ID instance.)
Pocket-ID Setup
- In Pocket-ID create a new OIDC Client, name it, for example
patchmon - Set a logo for this OIDC Client if you would like to.
- Set the callback URLs to:
https://patchmon.example.com/api/v1/auth/oidc/callback, or leave blank to autofill on first login. - Enable PKCE for improved security.
- Copy the
Client ID,Client SecretandOIDC-Discovery-URLfor use in the next steps.
Patchmon Setup
Patchmon added OIDC SSO in Version 1.4.0
This example uses the docker-compose deployment type of patchmon See the Official Docs for more information.
Add/edit the following lines to your patchmon .env file replacing the values with the ones you copied above:
Save and redeploy patchmon and you should be able to login using OIDC with Pocket ID.
Group Claim
If you want to automatically assign permissions based on group membership. Group matching is case-insensitive, so patchmon admins matches PatchMon Admins
Pocket-ID Groups
Create groups for everey role, which you want to use, via User Groups → Add Group. Add the users depending on what permissions you want them to have to the groups. You only need to define the groups you intend to use. Any variables left unset are simply ignored.
Patchmon Group Environment Variables
Change the values of and add the roles you want to manage by pocketid.
OIDC_SCOPES→OIDC_SCOPES=openid email profile groupsOIDC_SYNC_ROLES→OIDC_SYNC_ROLES=true