SASLScram512
faststream.security.SASLScram512 #
SASLScram512(
username: str,
password: str,
ssl_context: Optional[SSLContext] = None,
use_ssl: Optional[bool] = None,
)
Bases: BaseSecurity
Security configuration for SASL/SCRAM-SHA-512 authentication.
This class defines security configuration for SASL/SCRAM-SHA-512 authentication, which includes a username and password.
PARAMETER | DESCRIPTION |
---|---|
username | The username for authentication. TYPE: |
password | The password for authentication. TYPE: |
ssl_context | An SSLContext object for SSL encryption. If None, SSL encryption is disabled. TYPE: |
use_ssl | A boolean indicating whether to use SSL encryption. Defaults to True. |
METHOD | DESCRIPTION |
---|---|
get_requirement | Get the security requirements for SASL/SCRAM-SHA-512 authentication. |
get_schema | Get the security schema for SASL/SCRAM-SHA-512 authentication. |
Source code in faststream/security.py
get_requirement #
Get the security requirements for SASL/SCRAM-SHA-512 authentication.
RETURNS | DESCRIPTION |
---|---|
List[AnyDict] | List[AnyDict]: A list of dictionaries representing security requirements. |