PhotoPrism
Sign in to the PhotoPrism photo library with Pocket ID.
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
PhotoPrismand add the callback URLhttps://photoprism.example.com/api/v1/oidc/redirect. - Click Create and copy the Client ID and the Client secret. The client secret is only shown once.
- On the client’s General tab, set Client Launch URL to
https://photoprism.example.com, then click Save. - On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
Configure PhotoPrism
Section titled “Configure PhotoPrism”Check out PhotoPrism’s OIDC Docs for more details. If you have PhotoPrism Pro, see the additional options in the Pro OIDC Docs.
Configure the following environment variables:
# RequiredPHOTOPRISM_OIDC_URI: https://id.example.comPHOTOPRISM_OIDC_CLIENT: <client-id>PHOTOPRISM_OIDC_SECRET: <client-secret># Enable Auto User RegistrationPHOTOPRISM_OIDC_REGISTER: true/falseOptional configuration:
# Custom Identity Provider NamePHOTOPRISM_OIDC_PROVIDER: Pocket IDPHOTOPRISM_OIDC_REDIRECT: true/falsePHOTOPRISM_OIDC_ICON: <path>