Skip to content

Commit

Permalink
docs: correct styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Aug 4, 2024
1 parent 27a2008 commit cfd0b09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
11 changes: 0 additions & 11 deletions docs/docs/en/api/faststream/asyncapi/proto/AsyncAPIApplication.md

This file was deleted.

9 changes: 4 additions & 5 deletions docs/docs/en/confluent/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,13 @@ This chapter discusses the security options available in **FastStream** and how

### 4. SASLOAuthBearer Object with SSL/TLS

**Purpose:** The `SASLOAuthBearer` is used for authentication using the Oauth sasl.mechanism. While using it you additionaly need to provide necessary `sasl.oauthbearer.*` values in config and provide it to `KafkaBroker`, eg. `sasl.oauthbearer.client.id`, `sasl.oauthbearer.client.secret`.
Full list is available [here](https://github.com/confluentinc/librdkafka/blob/master/CONFIGURATION.md)
**Purpose:** The `SASLOAuthBearer` is used for authentication using the Oauth sasl.mechanism. While using it you additionaly need to provide necessary `sasl.oauthbearer.*` values in config and provide it to `KafkaBroker`, eg. `sasl.oauthbearer.client.id`, `sasl.oauthbearer.client.secret`. Full list is available in the [confluent doc](https://github.com/confluentinc/librdkafka/blob/master/CONFIGURATION.md){.external-link target="_blank"}

**Usage:**

=== "OauthBearer"
```python linenums="1"
{!> docs_src/confluent/security/sasl_oauthbearer.py [ln:1-8.25,7-] !}
{!> docs_src/confluent/security/sasl_oauthbearer.py [ln:1-8] !}
```


Expand All @@ -71,13 +70,13 @@ Full list is available [here](https://github.com/confluentinc/librdkafka/blob/ma

**Usage:**

```python
```python linenums="1"
from faststream.confluent import KafkaBroker
from faststream.security import SASLPlaintext

security = SASLPlaintext(
username="admin",
password="password", # pragma: allowlist secret
password="password",
)

config = {"ssl.ca.location": "~/my_certs/CRT_cacerts.pem"}
Expand Down

0 comments on commit cfd0b09

Please sign in to comment.