From de321c881755e1e8d98702c89f38855ddd569f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Lav=C3=A9n?= Date: Mon, 3 Mar 2025 17:44:32 +0100 Subject: [PATCH] Pocket ID instructions (#55) * Update pocket-id.md Updated Public client configuration for Pocket ID * Update pocket-id.md Fixed formatting * Update pocket-id.md Updated Home Assistant URL and fixed formatting even more. * Update pocket-id.md continue to fix formatting * Update pocket-id.md * Update pocket-id.md Found the preview button :-) Hopefully last formatting commit. * Update pocket-id.md Added Confidential client configuration * Update pocket-id.md Fixed some formatting again --- docs/provider-configurations/pocket-id.md | 58 ++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/docs/provider-configurations/pocket-id.md b/docs/provider-configurations/pocket-id.md index 66ba2b1..742d0f7 100644 --- a/docs/provider-configurations/pocket-id.md +++ b/docs/provider-configurations/pocket-id.md @@ -1,2 +1,58 @@ # Pocket ID -Under construction. \ No newline at end of file + +## Public client configuration + +### Pocket ID configuration +1. Login to Pocket ID and go to `OIDC Clients` + +2. Click on `Add OIDC Client` + +3. Fill the following details: + - Name: `Home Assistant` + - Callback URLs: `/auth/oidc/callback` (for example: https://hass.example.com/auth/oidc/callback) + - Click on `Public Client` (PKCE will be automatically marked when doing this) + +4. Click on `Save` + +5. Click on `Show more details` and note down your `Client ID` and `OIDC Discovery URL` since you will need them later. + +### Home Assistant configuration +1. Add following configuration in Home Assistant's configuration.yaml: +```yaml +auth_oidc: + client_id: + discovery_url: (for example: https://id.example.com/.well-known/openid-configuration) +``` + +2. Restart Home Assistant and go to your Home Assistant OIDC URL (for example: https://hass.example.com/auth/oidc/welcome) + +## Confidential client configuration + +### Pocket ID configuration +1. Login to Pocket ID and go to `OIDC Clients` + +2. Click on `Add OIDC Client` + +3. Fill the following details: + - Name: `Home Assistant` + - Callback URLs: `/auth/oidc/callback` (for example: https://hass.example.com/auth/oidc/callback) + +4. Click on `Save` + +5. Click on `Show more details` and note down your: + - `Client ID` + - `Client secret` + - `OIDC Discovery URL` + +### Home Assistant configuration +1. Add following configuration in Home Assistant's configuration.yaml: +```yaml +auth_oidc: + client_id: + client_secret: + discovery_url: (for example: https://id.example.com/.well-known/openid-configuration) +``` + +2. Restart Home Assistant and go to your Home Assistant OIDC URL (for example: https://hass.example.com/auth/oidc/welcome) + +