Postgres module

check_auth_method

procedure · 1 overloadsince 0.27.0Source

Fails the login when the server's way of authenticating is not one require_auth allows. code is the AuthenticationRequest the server sent.

check_auth_method :: (
    c: *Connection,
    config: Config,
    policy: Auth_Policy,
    code: u32
) -> Pg_Error

Fails the login when the server's way of authenticating is not one require_auth allows. code is the AuthenticationRequest the server sent.

Parameters

c: *Connection
the connection, for the error.
config: Config
its require_auth is quoted in the error.
policy: Auth_Policy
what parse_require_auth made of config.require_auth.
code: u32
the AuthenticationRequest code the server sent.

Returns

See also