Skip to content

Commit c8e6783

Browse files
docs: add oidc keycloak docs (coder#8042)
* adding docs for keycloak to solve the problem with the refraish token * fmt
1 parent 0c50774 commit c8e6783

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/admin/auth.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,11 @@ Below are some details specific to individual OIDC providers.
328328
```
329329

330330
- (Optional) If using Group Sync, send the required groups in the configured groups claim field. See [here](https://stackoverflow.com/a/55570286) for an example.
331+
332+
### Keycloak
333+
334+
The access_type parameter has two possible values: "online" and "offline." By default, the value is set to "offline". This means that when a user authenticates using OIDC, the application requests offline access to the user's resources, including the ability to refresh access tokens without requiring the user to reauthenticate.
335+
336+
To enable the `offline_access` scope, which allows for the refresh token functionality, you need to add it to the list of requested scopes during the authentication flow. Including the `offline_access` scope in the requested scopes ensures that the user is granted the necessary permissions to obtain refresh tokens.
337+
338+
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.

0 commit comments

Comments
 (0)