Forgejo
Pocket ID Setup
- In Pocket ID, create a new OIDC client named
Forgejo
(or any name you prefer). - (Optional) Set a logo for the OIDC client.
- Set the callback URL to:
https://<Forgejo Host>/user/oauth2/PocketID/callback
- Copy the
Client ID
,Client Secret
, andOIDC Discovery URL
for the next steps.
Forgejo Setup
- Log in to Forgejo as an admin.
- Go to Site Administration → Identity & Access → Authentication Sources.
- Click Add Authentication Source.
- Set Authentication Type to
OAuth2
. - Set Authentication Name to
PocketID
.importantIf you change this name, update the callback URL in Pocket ID to match.
- Set OAuth2 Provider to
OpenID Connect
. - Enter the
Client ID
into the Client ID (Key) field. - Enter the
Client Secret
into the Client Secret field. - Enter the
OIDC Discovery URL
into the OpenID Connect Auto Discovery URL field. - Enable Skip local 2FA.
- Set Additional Scopes to
openid email profile
. - Save the settings and test the OAuth login.