File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed
content/en/docs/reference/access-authn-authz Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,22 @@ body.td-404 main .error-details {
71
71
max-width : 80% ;
72
72
border : 1px solid rgb (222 , 226 , 230 );
73
73
border-radius : 5px ;
74
+ margin-bottom : 1rem ;
75
+ padding-top : 1rem ;
76
+ padding-bottom : 1rem ;
77
+
78
+ // mermaid diagram - sequence diagram
79
+ .actor {
80
+ fill : #326ce5 !important ;
81
+ }
82
+ text .actor {
83
+ font-size : 18px !important ;
84
+ stroke : white !important ;
85
+ fill : white !important ;
86
+ }
87
+ .activation0 {
88
+ fill : #c9e9ec !important ;
89
+ }
74
90
}
75
91
76
92
/* HEADER */
Original file line number Diff line number Diff line change @@ -282,7 +282,33 @@ from the OAuth2 [token response](https://openid.net/specs/openid-connect-core-1_
282
282
as a bearer token. See [above](#putting-a-bearer-token-in-a-request) for how the token
283
283
is included in a request.
284
284
285
- 
285
+ {{< mermaid >}}
286
+ sequenceDiagram
287
+ participant user as User
288
+ participant idp as Identity Provider
289
+ participant kube as Kubectl
290
+ participant api as API Server
291
+
292
+ user ->> idp : 1. Login to IdP
293
+ activate idp
294
+ idp -->> user : 2. Provide access_token,<br>id_token, and refresh_token
295
+ deactivate idp
296
+ activate user
297
+ user ->> kube : 3. Call Kubectl<br>with --token being the id_token<br>OR add tokens to .kube/config
298
+ deactivate user
299
+ activate kube
300
+ kube ->> api : 4. Authorization: Bearer...
301
+ deactivate kube
302
+ activate api
303
+ api ->> api : 5. Is JWT signature valid?
304
+ api ->> api : 6. Has the JWT expired?(iat+exp)
305
+ api ->> api : 7. user authorized?
306
+ api -->> kube : 8. Authorized: Perform<br>action and return result
307
+ deactivate api
308
+ activate kube
309
+ kube --x user : 9. Return result
310
+ deactivate kube
311
+ {{< /mermaid >}}
286
312
287
313
1. Login to your identity provider
288
314
2. Your identity provider will provide you with an `access_token`, `id_token` and a `refresh_token`
You can’t perform that action at this time.
0 commit comments