Harbor
Configure Harbor open source registry with Pocket ID
Below URLs are used as placeholders for the Harbor and Pocket ID instances. Replace them with the actual URLs.
- harbor.example.com (The url of your Harbor instance.)
- pocketid.example.com (The url of your Pocket ID instance.)
Pocket ID Setup
- In Pocket ID, create a new OIDC client named
Harbor(or any name you prefer). - Set the callback URL to:
https://harbor.example.com/c/oidc/callback, or leave blank to autofill on first login. - Set the launch URL to:
https://harbor.example.com - Check
PKCE - (Optional) Set a logo for the OIDC client.
- Copy the
Client IDandClient Secretfor the next steps.
Harbor Setup
- Login to Harbor as the admin user.
- Go to Administration -> Configuration and select Authentication.
- Enter the values for the fields as given below:
Auth ModeasOIDCPrimary Auth Modechecked if Pocket ID should be the primary authenticationOIDC Provider NameasPocket IDor something similar.OIDC Endpointaspocketid.example.comOIDC Client IDas theClient IDfrom above.OIDC Client Secretas theClient Secretfrom above.OIDC Group Filterleave blankGroup Claim NameasgroupsOIDC Admin Groupset to a Pocket ID group for administrators (e.g.admin) or leave blankOIDC Scopeset asopenid,offline_access,email,profile,groupsVerify Certificatechecked.Automatic onboardingchecked (or unchecked if you want user to change username).OIDC Session Logoutchecked.Username Claimasemail
- Save the settings.
- Test OIDC server
- Logout and test the OAuth based login.
Hints
Username Claimcan be any other value (e.g. leave empty fornameor setsub,email, ...) in the claim, depends how your user should be named.- Use
OIDC Group Filterif not all of your Pocket ID user should access the registry. - See Configure OIDC Provider Authentication for further help
Common problems
- In case you enabled primary authentication mode as
OIDCand can't login, avoid the redirect by using `https://harbor.example.com/account/sign-in to login as local system administrator - See warning in the Harbor documentation: You can change the authentication mode from database to OIDC only if no local users have been added to the database. If there is at least one user other than admin in the Harbor database, you cannot change the authentication mode.