Skip to content

Commit daeb549

Browse files
authored
Fix configuration snippet for refresh token issue workaround (kubermatic#1853)
* Fixed configuration snippet for refresh token issue workaround Signed-off-by: archups <archupsawant@gmail.com> * Refresh and update snippet Signed-off-by: archups <archupsawant@gmail.com> --------- Signed-off-by: archups <archupsawant@gmail.com>
1 parent 7817be7 commit daeb549

File tree

6 files changed

+108
-60
lines changed

6 files changed

+108
-60
lines changed

content/kubermatic/main/architecture/known-issues/_index.en.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ weight = 25
77

88
## Overview
99

10-
This page documents the list of known issues and possible work arounds/solutions.
10+
This page documents the list of known issues and possible workarounds/solutions.
1111

1212
## Oidc refresh tokens are invalidated when the same user/client id pair is authenticated multiple times
1313

@@ -32,17 +32,25 @@ The following yaml snippet is an example how to configure an oidc connector to k
3232

3333
```yaml
3434
connectors:
35-
- config:
35+
- id: oidc
36+
name: OIDC
37+
type: Google
38+
config:
3639
clientID: <client_id>
3740
clientSecret: <client_secret>
38-
orgs:
39-
- name: <github_organization>
40-
redirectURI: https://kubermatic.test/dex/callback
41-
id: github
42-
name: GitHub
43-
type: github
44-
userIDKey: jti
45-
userNameKey: email
41+
redirectURI: https://kkp.example.com/dex/callback
42+
scopes:
43+
- openid
44+
- profile
45+
- email
46+
- offline_access
47+
# Workaround to support multiple user_id/client_id pairs concurrently
48+
# Configurable key for user ID look up
49+
# Default: id
50+
userIDKey: <<userIDValue>>
51+
# Optional: Configurable key for user name look up
52+
# Default: user_name
53+
userNameKey: <<userNameValue>>
4654
```
4755
4856
#### external provider

content/kubermatic/v2.24/architecture/known-issues/_index.en.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ weight = 25
77

88
## Overview
99

10-
This page documents the list of known issues and possible work arounds/solutions.
10+
This page documents the list of known issues and possible workarounds/solutions.
1111

1212
## Latest Ubuntu 22.04 image prevents creating new EBS volumes on AWS
1313

@@ -188,17 +188,25 @@ The following yaml snippet is an example how to configure an oidc connector to k
188188

189189
```yaml
190190
connectors:
191-
- config:
191+
- id: oidc
192+
name: OIDC
193+
type: Google
194+
config:
192195
clientID: <client_id>
193196
clientSecret: <client_secret>
194-
orgs:
195-
- name: <github_organization>
196-
redirectURI: https://kubermatic.test/dex/callback
197-
id: github
198-
name: GitHub
199-
type: github
200-
userIDKey: jti
201-
userNameKey: email
197+
redirectURI: https://kkp.example.com/dex/callback
198+
scopes:
199+
- openid
200+
- profile
201+
- email
202+
- offline_access
203+
# Workaround to support multiple user_id/client_id pairs concurrently
204+
# Configurable key for user ID look up
205+
# Default: id
206+
userIDKey: <<userIDValue>>
207+
# Optional: Configurable key for user name look up
208+
# Default: user_name
209+
userNameKey: <<userNameValue>>
202210
```
203211
204212
#### external provider

content/kubermatic/v2.25/architecture/known-issues/_index.en.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ weight = 25
77

88
## Overview
99

10-
This page documents the list of known issues and possible work arounds/solutions.
10+
This page documents the list of known issues and possible workarounds/solutions.
1111

1212
## Latest Ubuntu 22.04 image prevents creating new EBS volumes on AWS
1313

@@ -173,17 +173,25 @@ The following yaml snippet is an example how to configure an oidc connector to k
173173

174174
```yaml
175175
connectors:
176-
- config:
176+
- id: oidc
177+
name: OIDC
178+
type: Google
179+
config:
177180
clientID: <client_id>
178181
clientSecret: <client_secret>
179-
orgs:
180-
- name: <github_organization>
181-
redirectURI: https://kubermatic.test/dex/callback
182-
id: github
183-
name: GitHub
184-
type: github
185-
userIDKey: jti
186-
userNameKey: email
182+
redirectURI: https://kkp.example.com/dex/callback
183+
scopes:
184+
- openid
185+
- profile
186+
- email
187+
- offline_access
188+
# Workaround to support multiple user_id/client_id pairs concurrently
189+
# Configurable key for user ID look up
190+
# Default: id
191+
userIDKey: <<userIDValue>>
192+
# Optional: Configurable key for user name look up
193+
# Default: user_name
194+
userNameKey: <<userNameValue>>
187195
```
188196
189197
#### external provider

content/kubermatic/v2.26/architecture/known-issues/_index.en.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ weight = 25
77

88
## Overview
99

10-
This page documents the list of known issues and possible work arounds/solutions.
10+
This page documents the list of known issues and possible workarounds/solutions.
1111

1212
## Oidc refresh tokens are invalidated when the same user/client id pair is authenticated multiple times
1313

@@ -32,17 +32,25 @@ The following yaml snippet is an example how to configure an oidc connector to k
3232

3333
```yaml
3434
connectors:
35-
- config:
35+
- id: oidc
36+
name: OIDC
37+
type: Google
38+
config:
3639
clientID: <client_id>
3740
clientSecret: <client_secret>
38-
orgs:
39-
- name: <github_organization>
40-
redirectURI: https://kubermatic.test/dex/callback
41-
id: github
42-
name: GitHub
43-
type: github
44-
userIDKey: jti
45-
userNameKey: email
41+
redirectURI: https://kkp.example.com/dex/callback
42+
scopes:
43+
- openid
44+
- profile
45+
- email
46+
- offline_access
47+
# Workaround to support multiple user_id/client_id pairs concurrently
48+
# Configurable key for user ID look up
49+
# Default: id
50+
userIDKey: <<userIDValue>>
51+
# Optional: Configurable key for user name look up
52+
# Default: user_name
53+
userNameKey: <<userNameValue>>
4654
```
4755
4856
#### external provider

content/kubermatic/v2.27/architecture/known-issues/_index.en.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ weight = 25
77

88
## Overview
99

10-
This page documents the list of known issues and possible work arounds/solutions.
10+
This page documents the list of known issues and possible workarounds/solutions.
1111

1212
## Oidc refresh tokens are invalidated when the same user/client id pair is authenticated multiple times
1313

@@ -32,17 +32,25 @@ The following yaml snippet is an example how to configure an oidc connector to k
3232

3333
```yaml
3434
connectors:
35-
- config:
35+
- id: oidc
36+
name: OIDC
37+
type: Google
38+
config:
3639
clientID: <client_id>
3740
clientSecret: <client_secret>
38-
orgs:
39-
- name: <github_organization>
40-
redirectURI: https://kubermatic.test/dex/callback
41-
id: github
42-
name: GitHub
43-
type: github
44-
userIDKey: jti
45-
userNameKey: email
41+
redirectURI: https://kkp.example.com/dex/callback
42+
scopes:
43+
- openid
44+
- profile
45+
- email
46+
- offline_access
47+
# Workaround to support multiple user_id/client_id pairs concurrently
48+
# Configurable key for user ID look up
49+
# Default: id
50+
userIDKey: <<userIDValue>>
51+
# Optional: Configurable key for user name look up
52+
# Default: user_name
53+
userNameKey: <<userNameValue>>
4654
```
4755
4856
#### external provider

content/kubermatic/v2.28/architecture/known-issues/_index.en.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ weight = 25
77

88
## Overview
99

10-
This page documents the list of known issues and possible work arounds/solutions.
10+
This page documents the list of known issues and possible workarounds/solutions.
1111

1212
## Oidc refresh tokens are invalidated when the same user/client id pair is authenticated multiple times
1313

@@ -32,17 +32,25 @@ The following yaml snippet is an example how to configure an oidc connector to k
3232

3333
```yaml
3434
connectors:
35-
- config:
35+
- id: oidc
36+
name: OIDC
37+
type: Google
38+
config:
3639
clientID: <client_id>
3740
clientSecret: <client_secret>
38-
orgs:
39-
- name: <github_organization>
40-
redirectURI: https://kubermatic.test/dex/callback
41-
id: github
42-
name: GitHub
43-
type: github
44-
userIDKey: jti
45-
userNameKey: email
41+
redirectURI: https://kkp.example.com/dex/callback
42+
scopes:
43+
- openid
44+
- profile
45+
- email
46+
- offline_access
47+
# Workaround to support multiple user_id/client_id pairs concurrently
48+
# Configurable key for user ID look up
49+
# Default: id
50+
userIDKey: <<userIDValue>>
51+
# Optional: Configurable key for user name look up
52+
# Default: user_name
53+
userNameKey: <<userNameValue>>
4654
```
4755
4856
#### external provider

0 commit comments

Comments
 (0)