Skip to content

Commit 8e1ccf9

Browse files
authored
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.
1 parent f2f0237 commit 8e1ccf9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/admin/users/idp-sync.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,3 +595,15 @@ user is granted the necessary permissions to obtain refresh tokens.
595595
By combining the `{"access_type":"offline"}` parameter in the OIDC Auth URL with
596596
the `offline_access` scope, you can achieve the desired behavior of obtaining
597597
refresh tokens for offline access to the user's resources.
598+
599+
### Google
600+
601+
To ensure Coder receives a refresh token when users authenticate with Google
602+
directly, set the `prompt` to `consent` in the auth URL parameters. Without
603+
this, users will be logged out after 1 hour.
604+
605+
In your Coder configuration:
606+
607+
```shell
608+
CODER_OIDC_AUTH_URL_PARAMS='{"access_type": "offline", "prompt": "consent"}'
609+
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy