Skip to content

AuthRequireSCRAM

[Source]

The client requires SCRAM-SHA-256 authentication. Connection fails with pg_session_connection_failed(AuthenticationMethodRejected) if the server responds to the startup message with any other authentication challenge (cleartext, MD5, or no authentication). This is the default.

SCRAM is the only PostgreSQL authentication method that provides mutual authentication — the client verifies the server knows the password, not just that the server accepted the client's proof. Requiring SCRAM closes downgrade attacks where a malicious or compromised server asks for a weaker method.

primitive val AuthRequireSCRAM

Constructors

create

[Source]

new val create()
: AuthRequireSCRAM val^

Returns


Public Functions

eq

[Source]

fun box eq(
  that: AuthRequireSCRAM val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: AuthRequireSCRAM val)
: Bool val

Parameters

Returns