Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.Hawk.Internal.Types
- type ClientId = Text
- type ExtData = ByteString
- data HeaderArtifacts = HeaderArtifacts {
- haMethod :: Method
- haHost :: ByteString
- haPort :: Maybe Int
- haResource :: ByteString
- haId :: ClientId
- haTimestamp :: POSIXTime
- haNonce :: ByteString
- haMac :: ByteString
- haHash :: Maybe ByteString
- haExt :: Maybe ExtData
- haApp :: Maybe Text
- haDlg :: Maybe Text
- type ContentType = ByteString
- data PayloadInfo = PayloadInfo {}
- data MessageAuth = MessageAuth {}
- data WwwAuthenticateHeader = WwwAuthenticateHeader {}
- data ServerAuthorizationHeader = ServerAuthorizationHeader {
- sahMac :: ByteString
- sahHash :: Maybe ByteString
- sahExt :: Maybe ExtData
Documentation
Identifies a particular client so that their credentials can be looked up.
type ExtData = ByteString Source #
Extension data included in verification hash. This can be anything or nothing, depending on what the application needs.
data HeaderArtifacts Source #
Struct for attributes which will be encoded in the Hawk
Authorization
header and included in the verification. The
terminology (and spelling) come from the original Javascript
implementation of Hawk.
Constructors
HeaderArtifacts | |
Fields
|
Instances
type ContentType = ByteString Source #
Value of Content-Type
HTTP headers.
data PayloadInfo Source #
Payload data and content type bundled up for convenience.
Constructors
PayloadInfo | |
Fields |
Instances
data MessageAuth Source #
Authorization attributes for a Hawk message. This is generated by
message
and verified by
authenticateMessage
.
Constructors
MessageAuth | |
Fields
|
Instances
data WwwAuthenticateHeader Source #
Represents the WWW-Authenticate
header which the server uses to
respond when the client isn't authenticated.
Constructors
WwwAuthenticateHeader | |
Fields
|
Instances
data ServerAuthorizationHeader Source #
Represents the Server-Authorization
header which the server
sends back to the client.
Constructors
ServerAuthorizationHeader | |
Fields
|