ExDav.Authenticator.Basic (ExDav v0.1.0)

Copy Markdown View Source

HTTP Basic authenticator. Verifies the username/password pair via a configurable :verify MFA tuple {module, function} invoked as apply(module, function, [username, password]). Returns the username as the principal on success.

authenticator: {ExDav.Authenticator.Basic,
                verify: {ExDav.Storage.Postgres, :authenticate}}