Skip to content

Commit

Permalink
feat(doc): Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Nov 1, 2024
1 parent c6697e0 commit f721a4a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,22 @@ Configure [App Permission Schema](schema/cosec-app-permission.schema.json) to su
}
```

## Obtain the current security context

### WebFlux

```kotlin
Mono.deferContextual {
val securityContext = it.getSecurityContext()
//TODO
}
```

### WebMvc

```
SecurityContextHolder.context
```
## OpenTelemetry

[CoSec-OpenTelemetry](cosec-opentelemetry)
Expand Down
16 changes: 16 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,22 @@ class CustomConditionMatcher(configuration: Configuration) :
]
}

```
## 获取当前安全上下文

### WebFlux

```kotlin
Mono.deferContextual {
val securityContext = it.getSecurityContext()
//TODO
}
```

### WebMvc

```
SecurityContextHolder.context
```

## OpenTelemetry
Expand Down

0 comments on commit f721a4a

Please sign in to comment.