Forgejo
Sign in to the Forgejo Git service 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
Forgejoand add the callback URLhttps://forgejo.example.com/user/oauth2/PocketID/callback. - 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 Forgejo
Section titled “Configure Forgejo”- Log in to Forgejo as an admin.
- Open Site Administration → Identity & Access → Authentication Sources.
- Click Add Authentication Source.
- Set Authentication Type to
OAuth2. - Set Authentication Name to
PocketID.If you change this name, update the callback URL in Pocket ID to match.
- Set OAuth2 Provider to
OpenID Connect. - Enter the Client ID from Pocket ID into the Client ID (Key) field.
- Enter the Client secret from Pocket ID into the Client Secret field.
- Enter the OIDC Discovery URL from Pocket ID into the OpenID Connect Auto Discovery URL field.
- Enable Skip local 2FA.
- Set Additional Scopes to
openid email profile. - Save the settings and sign in with Pocket ID to test it.