forge
Explore
Log in

Don't you dare go Hollow

📝 readme: client id comes from im; list directory.read and the public URL when registering

Browse files at this commit

c816f91179952f4292c255c2cfb94a7ac592d405Ahmet Kaan GümüşParent: 9ffa9cd
README.mdmodified+6 -4
@@ -46,7 +46,7 @@ user can read:
46 | `listen` | Address to bind. Keep it on loopback and put the reverse proxy in front. |46 | `listen` | Address to bind. Keep it on loopback and put the reverse proxy in front. |
47 | `base_url` | Public origin with no trailing slash. An `https` origin turns on `Secure` cookies and HSTS. |47 | `base_url` | Public origin with no trailing slash. An `https` origin turns on `Secure` cookies and HSTS. |
48 | `trusted_proxies` | Proxies whose `X-Forwarded-For` is believed. |48 | `trusted_proxies` | Proxies whose `X-Forwarded-For` is believed. |
49-| `[oidc]` | `issuer` (the `im` origin), `client_id` (`in`), `client_secret_file`. |49+| `[oidc]` | `issuer` (the `im` origin), `client_id` (the id `im` printed for this client), `client_secret_file`. |
50 | `[storage]` | `backend = "local"` (default) or `"s3"` with `[storage.s3]`. |50 | `[storage]` | `backend = "local"` (default) or `"s3"` with `[storage.s3]`. |
51 | `[backup]` | Optional. `dir`, `interval_hours`, `keep`, `healthcheck_url`. See *Backups*. |51 | `[backup]` | Optional. `dir`, `interval_hours`, `keep`, `healthcheck_url`. See *Backups*. |
52 | `[limits]` | Optional defaults the admin page may override: quotas, purge days, upload size, link length. |52 | `[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
70 --redirect-uri "<base>/auth/callback" \70 --redirect-uri "<base>/auth/callback" \
71 --post-logout-uri "<base>/" \71 --post-logout-uri "<base>/" \
72 --backchannel-uri "<base>/auth/backchannel-logout" \72 --backchannel-uri "<base>/auth/backchannel-logout" \
73- --family-key in73+ --family-key in --public-url "<base>" \
74+ --scopes "openid profile email directory.read"
74 ```75 ```
75 76
76 `im` prints the client id and its secret once. Save the secret to the file named by `client_secret_file`77 `im` prints the client id and its secret once. Save the secret to the file named by `client_secret_file`
77- (`/var/lib/in/oidc_client_secret`, mode 0600, owned by `in`). The default scopes (`openid profile email`) are78+ (`/var/lib/in/oidc_client_secret`, mode 0600, owned by `in`), and copy the printed client id into `client_id`.
78- what `in` needs; the family's `directory.read` scope is granted to every family client by default.79+ The scopes must include `directory.read`, which `in` uses to read the people directory; `im` does not grant
80+ it unless it is listed.
79 81
80 3. Put the reverse proxy in front (see `deploy/ferron.kdl`, an example for Ferron that proxies82 3. Put the reverse proxy in front (see `deploy/ferron.kdl`, an example for Ferron that proxies
81 `https://in.example.com` to `127.0.0.1:7655`). Ferron must not buffer responses: the live update stream83 `https://in.example.com` to `127.0.0.1:7655`). Ferron must not buffer responses: the live update stream