servant-auth-server-0.4.4.0: servant-server/servant-auth compatibility

Servant.Auth.Server.Internal.BasicAuth

Synopsis

Documentation

A ServerError that asks the client to authenticate via Basic Authentication, should be invoked by an application whenever appropriate. The argument is the realm.

type family BasicAuthCfg Source #

class FromBasicAuthData a where Source #

Methods

Whether the username exists and the password is correct. Note that, rather than passing a Pass to the function, we pass a function that checks an EncryptedPass. This is to make sure you don't accidentally do something untoward with the password, like store it.