Skip to main content

is_authentication_failure

Function is_authentication_failure 

Source
fn is_authentication_failure(error: &PostgresError) -> bool
Expand description

Reports whether the server refused the connection’s credentials, which is SQLSTATE class 28.

Amazon RDS was observed to answer two kinds of refused IAM connection with an error in this class. With IAM authentication disabled for replication, it reports password authentication failed. With a token signed by a revoked role session, it reports PAM authentication failed.