SASLPlaintext
faststream.security.SASLPlaintext #
SASLPlaintext(
username: str,
password: str,
ssl_context: Optional[SSLContext] = None,
use_ssl: bool | None = None,
)
Bases: BaseSecurity
Security configuration for SASL/PLAINTEXT authentication.
This class defines security configuration for SASL/PLAINTEXT authentication, which includes a username and password.
Source code in faststream/security.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |
get_requirement #
get_requirement() -> list[dict[str, Any]]
Get the security requirements for SASL/PLAINTEXT authentication.
Source code in faststream/security.py
71 72 73 74 | |
get_schema #
get_schema() -> dict[str, dict[str, str]]
Get the security schema for SASL/PLAINTEXT authentication.
Source code in faststream/security.py
76 77 78 79 | |