Grist
Sign in to the Grist spreadsheet tool 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
Gristand add the callback URLhttps://grist.example.com/oauth2/callback. - 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 Grist
Section titled “Configure Grist”- In Grist (Docker, Docker Compose, etc.), set these environment variables:
GRIST_OIDC_IDP_ISSUER="https://id.example.com"GRIST_OIDC_IDP_CLIENT_ID="<client-id>"GRIST_OIDC_IDP_CLIENT_SECRET="<client-secret>"GRIST_OIDC_SP_HOST="https://grist.example.com"GRIST_OIDC_IDP_SCOPES="openid email profile" # DefaultGRIST_OIDC_IDP_END_SESSION_ENDPOINT="https://id.example.com/api/oidc/end-session"GRIST_OIDC_SP_IGNORE_EMAIL_VERIFIED=true # Needed if "Emails verified by default" is off (the default) in Administration → Application Configuration → Email in Pocket ID
- Make sure that the
GRIST_DEFAULT_EMAILenvironment variable is set to the same email address as your user profile in Pocket ID. - Start or restart Grist.