Postgres module

authenticate

procedure · 1 overloadsince 0.27.0Source

Reads the server's replies to the startup message until ReadyForQuery, answering authentication requests.

authenticate :: (c: *Connection, config: Config, user: string) -> Pg_Error

Reads the server's replies to the startup message until ReadyForQuery, answering authentication requests.

Parameters

c: *Connection
the connection being set up.
config: Config
the settings: require_auth, channel_binding, password and the like.
user: string
the role name sent in the startup message.

Returns

See also