Safe Haskell | None |
---|---|
Language | Haskell2010 |
- header :: AuthResult t -> Maybe PayloadInfo -> (Status, Header)
- headerSuccess :: AuthSuccess t -> Maybe PayloadInfo -> ByteString
- headerFail :: AuthFail -> ByteString
- timestampMessage :: String -> POSIXTime -> Credentials -> ByteString
Documentation
header :: AuthResult t -> Maybe PayloadInfo -> (Status, Header) Source #
Generates a suitable Server-Authorization
header to send back
to the client. Credentials and artifacts would be provided by a
previous call to authenticateRequest
(or authenticate
).
If a payload is supplied, its hash will be included in the header.
headerSuccess :: AuthSuccess t -> Maybe PayloadInfo -> ByteString Source #
headerFail :: AuthFail -> ByteString Source #
timestampMessage :: String -> POSIXTime -> Credentials -> ByteString Source #