Safe Haskell | None |
---|---|
Language | Haskell2010 |
HTTP authentication support. Can be used with basic auth, token-based auth, or something else (though OAuth is likely not implementable with this API).
Documentation
Types used in authentication routines.
The type that the “Authorization” header will be parsed as. This info
will be given to authCheck
.
The result of performing authentication.
Can be ()
to handle just authorized/non-authorized, or something more
complex – for instance, if the auth header provides a token that may or
may not correspond to a particular organization, then the result could
be the ID of that organization).
class (AuthTypes tag, FromHttpApiData (AuthData tag)) => AuthDB tag m where Source #
An interface that has to be implemented for a server to provide authentication.
authCheck :: Maybe (AuthData tag) -> ScimHandler m (AuthInfo tag) Source #
Do authentication or throw an error in ScimHandler
(e.g.
unauthorized
) if the provided credentials are
invalid or don't correspond to any user.
Instances
AuthDB Mock TestServer Source # | |
Defined in Web.Scim.Server.Mock authCheck :: Maybe (AuthData Mock) -> ScimHandler TestServer (AuthInfo Mock) Source # |