Skip to main content

Module auth_handler

Module auth_handler 

Source

StructsΒ§

PgUserProviderSource πŸ”’
The [AuthSource] shared by pgwire’s cleartext and SCRAM mechanisms. Stateless by design: it only holds the user provider, everything about the current login arrives with each call, and the verified [UserInfoRef] travels back to the startup handler as the source identity, reported by [AuthOutcome::Authenticated].
ZeroPidSecretKeyGenerator πŸ”’
Query cancellation is not supported yet, so announce pid/secret key 0 as before the AuthDriver adoption.

EnumsΒ§

DbResolution πŸ”’
MechanismSelection πŸ”’

FunctionsΒ§

record_auth_failure πŸ”’
resolve_db_info πŸ”’
A function extracted to resolve lifetime and readability issues:
send_error πŸ”’
send_password_authentication_failed πŸ”’
set_client_info πŸ”’
to_scram_secret πŸ”’