Pocket ID¶
Pocket ID is a self-hosted authentication service designed to provide OIDC (OpenID Connect) authentication for various applications and services.
Installation¶
Default Port: 1411
Configuration path: /opt/pocket-id/.env
Warning
Pocket ID requires HTTPS to function correctly. Ensure you use a reverse proxy with a valid SSL certificate.
Config¶
Gitea OIDC Configuration¶
1. Pocket ID Setup¶
- Create Client: Create a new OIDC client named Gitea.
- Callback URL: Set to
https://<Gitea Host>/user/oauth2/PocketID/callback. - Credentials: Copy the Client ID, Client Secret, and OIDC Discovery URL.
2. Gitea Setup¶
- Admin Login: Log in to Gitea as an administrator.
- Go to Site Administration → Identity & Access → Authentication Sources.
- Click Add Authentication Source.
- Configure Fields:
- Authentication Type: OAuth2
- Authentication Name:
PocketID - OAuth2 Provider: OpenID Connect
- Client ID (Key): Paste the Client ID.
- Client Secret: Paste the Client Secret.
- OpenID Connect Auto Discovery URL: Paste the OIDC Discovery URL.
- Enable Skip local 2FA.
- Set Additional Scopes to
openid email profile. - Save the settings and test the login.
Immich OIDC Configuration¶
1. Pocket ID Setup¶
- Create Client: Create a new OIDC client (e.g., named
immich). - Callback URLs: Add the following three URLs:
https://<IMMICH-DOMAIN>/auth/loginhttps://<IMMICH-DOMAIN>/user-settingsapp.immich:///oauth-callback
- Credentials: Copy the Client ID, Client Secret, and OIDC Discovery URL.
2. Immich Setup¶
- In Immich, go to Administration > Settings > Authentication Settings > OAuth.
- Enable Login with OAuth.
- Configure Fields:
- Issuer URL: Paste the OIDC Discovery URL.
- Client ID: Paste the Client ID.
- Client Secret: Paste the Client Secret.
- Button Text (Optional): Change to
Login with Pocket ID. - Save the settings and test the login.