From 8e1ccf9f80810b79dc9bb79b9e9bc644c7703b34 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Thu, 12 Jun 2025 05:02:08 +1000 Subject: [PATCH 1/3] chore: update IdP docs with Google quirks (#18318) Following some issues we discovered on dogfood after merging #17878, we think `prompt=consent` is required for refresh tokens to be sent by Google every time you sign in. --- docs/admin/users/idp-sync.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/admin/users/idp-sync.md b/docs/admin/users/idp-sync.md index 123a5944c0e08..47ee36bad65ac 100644 --- a/docs/admin/users/idp-sync.md +++ b/docs/admin/users/idp-sync.md @@ -595,3 +595,15 @@ user is granted the necessary permissions to obtain refresh tokens. By combining the `{"access_type":"offline"}` parameter in the OIDC Auth URL with the `offline_access` scope, you can achieve the desired behavior of obtaining refresh tokens for offline access to the user's resources. + +### Google + +To ensure Coder receives a refresh token when users authenticate with Google +directly, set the `prompt` to `consent` in the auth URL parameters. Without +this, users will be logged out after 1 hour. + +In your Coder configuration: + +```shell +CODER_OIDC_AUTH_URL_PARAMS='{"access_type": "offline", "prompt": "consent"}' +``` From c2262f9400beb0af001b8dd5f46560afc12ad29d Mon Sep 17 00:00:00 2001 From: Edward Angert Date: Wed, 11 Jun 2025 16:04:17 -0400 Subject: [PATCH 2/3] docs: fix alert markdown in healthcheck doc (#18335) fix md --- docs/admin/monitoring/health-check.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/admin/monitoring/health-check.md b/docs/admin/monitoring/health-check.md index 456d52e0bce8b..3139697fec388 100644 --- a/docs/admin/monitoring/health-check.md +++ b/docs/admin/monitoring/health-check.md @@ -300,8 +300,7 @@ that they are able to successfully connect to Coder. Otherwise, ensure is set to a value greater than 0. > [!NOTE] -> This may be a transient issue if you are currently in the process of -updating your deployment. +> This may be a transient issue if you are currently in the process of updating your deployment. ### EPD02 @@ -316,8 +315,7 @@ of API incompatibility. version of Coder. > [!NOTE] -> This may be a transient issue if you are currently in the process of -updating your deployment. +> This may be a transient issue if you are currently in the process of updating your deployment. ### EPD03 @@ -332,8 +330,7 @@ connect to Coder. version of Coder. > [!NOTE] -> This may be a transient issue if you are currently in the process of -updating your deployment. +> This may be a transient issue if you are currently in the process of updating your deployment. ### EUNKNOWN From 1a00eae12e64c877a9ccfd30e97449348861d9b5 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Wed, 11 Jun 2025 16:04:57 -0500 Subject: [PATCH 3/3] chore: handle mixed type lists in plan output (#18331) Primarily for this fix: https://github.com/coder/preview/commit/2e5caa65a54ab87073aaeee84e2a859e0c9fb299 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 57beaf8277170..bf073cd762fc2 100644 --- a/go.mod +++ b/go.mod @@ -481,7 +481,7 @@ require ( require ( github.com/anthropics/anthropic-sdk-go v0.2.0-beta.3 - github.com/coder/preview v0.0.2-0.20250604144457-c9862a17f652 + github.com/coder/preview v0.0.2-0.20250611164554-2e5caa65a54a github.com/fsnotify/fsnotify v1.9.0 github.com/kylecarbs/aisdk-go v0.0.8 github.com/mark3labs/mcp-go v0.31.0 diff --git a/go.sum b/go.sum index d6e5e5adf4ec3..4a090a3897d79 100644 --- a/go.sum +++ b/go.sum @@ -910,8 +910,8 @@ github.com/coder/pq v1.10.5-0.20240813183442-0c420cb5a048 h1:3jzYUlGH7ZELIH4XggX github.com/coder/pq v1.10.5-0.20240813183442-0c420cb5a048/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0 h1:3A0ES21Ke+FxEM8CXx9n47SZOKOpgSE1bbJzlE4qPVs= github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0/go.mod h1:5UuS2Ts+nTToAMeOjNlnHFkPahrtDkmpydBen/3wgZc= -github.com/coder/preview v0.0.2-0.20250604144457-c9862a17f652 h1:GukgWbsop8A3vZXXwYtjJfLOIgLygvFw8I6BF0UuvNo= -github.com/coder/preview v0.0.2-0.20250604144457-c9862a17f652/go.mod h1:nXz3bBwbU8/9NYI4OISUsoLDFlEREtTozYhJq6FAE8E= +github.com/coder/preview v0.0.2-0.20250611164554-2e5caa65a54a h1:rArAOPl5zHB7lhT2sy+jfcmyLeDlm6tXDoGkGdWNq7g= +github.com/coder/preview v0.0.2-0.20250611164554-2e5caa65a54a/go.mod h1:nXz3bBwbU8/9NYI4OISUsoLDFlEREtTozYhJq6FAE8E= github.com/coder/quartz v0.2.1 h1:QgQ2Vc1+mvzewg2uD/nj8MJ9p9gE+QhGJm+Z+NGnrSE= github.com/coder/quartz v0.2.1/go.mod h1:vsiCc+AHViMKH2CQpGIpFgdHIEQsxwm8yCscqKmzbRA= github.com/coder/retry v1.5.1 h1:iWu8YnD8YqHs3XwqrqsjoBTAVqT9ml6z9ViJ2wlMiqc=