From c816f91179952f4292c255c2cfb94a7ac592d405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 28 Oct 2026 16:10:02 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20readme:=20client=20id=20comes=20?= =?UTF-8?q?from=20im;=20list=20directory.read=20and=20the=20public=20URL?= =?UTF-8?q?=20when=20registering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e84a225..c1cf51d 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ user can read: | `listen` | Address to bind. Keep it on loopback and put the reverse proxy in front. | | `base_url` | Public origin with no trailing slash. An `https` origin turns on `Secure` cookies and HSTS. | | `trusted_proxies` | Proxies whose `X-Forwarded-For` is believed. | -| `[oidc]` | `issuer` (the `im` origin), `client_id` (`in`), `client_secret_file`. | +| `[oidc]` | `issuer` (the `im` origin), `client_id` (the id `im` printed for this client), `client_secret_file`. | | `[storage]` | `backend = "local"` (default) or `"s3"` with `[storage.s3]`. | | `[backup]` | Optional. `dir`, `interval_hours`, `keep`, `healthcheck_url`. See *Backups*. | | `[limits]` | Optional defaults the admin page may override: quotas, purge days, upload size, link length. | @@ -70,12 +70,14 @@ is the built-in default. A blank field on that page removes the page's value aga --redirect-uri "/auth/callback" \ --post-logout-uri "/" \ --backchannel-uri "/auth/backchannel-logout" \ - --family-key in + --family-key in --public-url "" \ + --scopes "openid profile email directory.read" ``` `im` prints the client id and its secret once. Save the secret to the file named by `client_secret_file` - (`/var/lib/in/oidc_client_secret`, mode 0600, owned by `in`). The default scopes (`openid profile email`) are - what `in` needs; the family's `directory.read` scope is granted to every family client by default. + (`/var/lib/in/oidc_client_secret`, mode 0600, owned by `in`), and copy the printed client id into `client_id`. + The scopes must include `directory.read`, which `in` uses to read the people directory; `im` does not grant + it unless it is listed. 3. Put the reverse proxy in front (see `deploy/ferron.kdl`, an example for Ferron that proxies `https://in.example.com` to `127.0.0.1:7655`). Ferron must not buffer responses: the live update stream