SASLScram256
faststream.security.SASLScram256 #
SASLScram256(
username: str,
password: str,
ssl_context: Optional[SSLContext] = None,
use_ssl: bool | None = None,
)
Bases: BaseSecurity
Security configuration for SASL/SCRAM-SHA-256 authentication.
This class defines security configuration for SASL/SCRAM-SHA-256 authentication, which includes a username and password.
Source code in faststream/security.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
get_requirement #
get_requirement() -> list[dict[str, Any]]
Get the security requirements for SASL/SCRAM-SHA-256 authentication.
Source code in faststream/security.py
109 110 111 112 | |
get_schema #
get_schema() -> dict[str, dict[str, str]]
Get the security schema for SASL/SCRAM-SHA-256 authentication.
Source code in faststream/security.py
114 115 116 117 | |