8000 chore: update IdP docs with Google quirks · coder/coder@d15c1d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit d15c1d5

Browse files
committed
chore: update IdP docs with Google quirks
1 parent 1e407fb commit d15c1d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/admin/users/idp-sync.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,3 +595,13 @@ 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+
If you're using Google directly, you will likely want to set `prompt=consent` on
602+
your auth URL to ensure you get refresh tokens. Without this, users will be
603+
logged out of Coder after 1 hour.
604+
605+
```
606+
CODER_OIDC_AUTH_URL_PARAMS={"access_type": "offline", "prompt": "consent"}
607+
```

0 commit comments

Comments
 (0)
0