ModulesΒ§
- static_
user_ πprovider - watch_
file_ πuser_ provider
EnumsΒ§
ConstantsΒ§
- BEARER_
TOKEN_ USER - Reserved SQL-protocol username selecting bearer-token authentication.
TraitsΒ§
FunctionsΒ§
- authenticate_
with_ πcredential - load_
credential_ πfrom_ file - parse_
credential_ πline - Parse a line of credential in the format of
username=passwordorusername:permission_mode=password. - pg_
scram_ πunsupported_ users - Returns the users whose verifier cannot back a Postgres SCRAM handshake.
- postgres_
auth_ πinfo_ with_ credential - warn_
if_ πpg_ scram_ disabled - Warns once per credential load when the set disables Postgres SCRAM, so operators donβt unknowingly serve cleartext passwords over Postgres while believing SCRAM is in effect.
Type AliasesΒ§
- User
Info Map - Type alias for user info map. Key is username, value is (password verifier, permission_mode).