File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -341,6 +341,22 @@ Configure [App Permission Schema](schema/cosec-app-permission.schema.json) to su
341
341
}
342
342
```
343
343
344
+ ## Obtain the current security context
345
+
346
+ ### WebFlux
347
+
348
+ ``` kotlin
349
+ Mono .deferContextual {
350
+ val securityContext = it.getSecurityContext()
351
+ // TODO
352
+ }
353
+ ```
354
+
355
+ ### WebMvc
356
+
357
+ ```
358
+ SecurityContextHolder.context
359
+ ```
344
360
## OpenTelemetry
345
361
346
362
[ CoSec-OpenTelemetry] ( cosec-opentelemetry )
Original file line number Diff line number Diff line change @@ -341,6 +341,22 @@ class CustomConditionMatcher(configuration: Configuration) :
341
341
]
342
342
}
343
343
344
+ ```
345
+ ## 获取当前安全上下文
346
+
347
+ ### WebFlux
348
+
349
+ ``` kotlin
350
+ Mono .deferContextual {
351
+ val securityContext = it.getSecurityContext()
352
+ // TODO
353
+ }
354
+ ```
355
+
356
+ ### WebMvc
357
+
358
+ ```
359
+ SecurityContextHolder.context
344
360
```
345
361
346
362
## OpenTelemetry
You can’t perform that action at this time.
0 commit comments