Sonarr
Sign in to the Sonarr dashboard 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
Sonarrand add the callback URLhttps://sonarr.example.com/signin-oidc. - Click Create and copy the Client ID and the Client secret. The client secret is only shown once.
- On the client’s General tab, turn on PKCE, then click Save.
- On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
Configure Sonarr
Section titled “Configure Sonarr”Via the web interface
Section titled “Via the web interface”- Log in to Sonarr
- Go to Settings → General and enable Show Advanced.
- Under Security, fill in the following fields:
| Field | Value |
|---|---|
| Authentication | OIDC |
| Authentication Required | Enabled |
| OIDC Authority | https://id.example.com |
| OIDC Client ID | The Client ID from Pocket ID |
| OIDC Client Secret | The Client secret from Pocket ID |
| OIDC User | The user’s Verified email from Pocket ID |
| OIDC Scopes | openid email profile |
| Trusted Networks | The IP address of your reverse proxy (e.g. Caddy, Nginx, Traefik, etc.) |
- Click on Save Changes and restart Sonarr.
- Click on Login and you will be redirected to Pocket ID for authentication.
Via the config file
Section titled “Via the config file”- Stop Sonarr.
- Fill in the required fields in the
config.xmlfile (the file location may vary depending on your setup. For more information, check the Sonarr Appdata Directory).
<AuthenticationMethod>Oidc</AuthenticationMethod><AuthenticationRequired>Enabled</AuthenticationRequired><OidcAuthority>https://id.example.com</OidcAuthority><OidcClientId>client-id</OidcClientId><OidcClientSecret>client-secret</OidcClientSecret><OidcUserIdentifier>verified-email@example.com</OidcUserIdentifier><TrustedNetworks>trusted-ip-address</TrustedNetworks>- Restart Sonarr.
- Click on Login and you will be redirected to Pocket ID for authentication.
Troubleshooting
Section titled “Troubleshooting”- Check that the Trusted Networks is set correctly in Sonarr, otherwise the login will fail.
- Check that Allowed Hosts is set correctly in Sonarr
- Check that the email is verified in Pocket ID.