OpenGist
Configure OpenGist with Pocket ID authentication
Pocket ID Setup
Access your Pocket ID instance
Create a new OIDC application with the following parameters:
- Redirect URI:
https://your-opengist-domain.com/oauth/oidc/callback - Scopes:
openid profile email
- Redirect URI:
Note down the following values you'll need:
- Client ID
- Client Secret
- Issuer URL (typically
https://your-pocket-id-domain.com)
OpenGist Setup
Add the following configuration to your OpenGist config.yml file:
Environment variables (alternative)
You can also configure OpenGist using environment variables:
Testing
- Restart OpenGist
- Visit your OpenGist instance
- You should see a "Login with OIDC" button on the login page
- Click it to be redirected to Pocket ID for passkey authentication
Admin Group Configuration
To grant admin privileges to specific users, configure the admin-group parameter. Users belonging to this group in Pocket ID will have admin access in OpenGist.
- In Pocket ID, create a group called
opengist-admins(or your preferred name) - Add users who should have admin privileges to this group
- Configure OpenGist to use this group as shown in the examples above
Important Notes
- Ensure the callback URL in Pocket ID matches exactly what's configured
- The discovery URL must point to the
.well-known/openid-configurationendpoint of your Pocket ID instance - Users will be automatically created in OpenGist on first authentication
- Admin group membership is checked on each login, so changes in Pocket ID take effect immediately