BetterShift
Sign in to the BetterShift shift planner 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
BetterShiftand add the callback URLhttps://bettershift.example.com/api/auth/oauth2/callback/custom-oidc. - Click Create and copy the Client ID, the Client secret and the OIDC Discovery URL. 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 BetterShift
Section titled “Configure BetterShift”Add or edit the following lines in your BetterShift .env file, using the values you copied from Pocket ID:
CUSTOM_OIDC_ENABLED=trueCUSTOM_OIDC_NAME=Login with Pocket ID # BUTTON_TEXTCUSTOM_OIDC_CLIENT_ID=<client-id>CUSTOM_OIDC_CLIENT_SECRET=<client-secret>CUSTOM_OIDC_ISSUER=https://id.example.com/.well-known/openid-configurationCUSTOM_OIDC_SCOPES=openid profile email # Space-separated listSave the file, redeploy BetterShift and sign in with Pocket ID to test it.