Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data RelyingParty = RelyingParty {}
- data Origin = Origin {
- originScheme :: Text
- originHost :: Text
- originPort :: Maybe Int
- defaultRelyingParty :: Origin -> RelyingParty
- data TokenBinding
- newtype Challenge = Challenge {}
- data WebAuthnType
- data CollectedClientData = CollectedClientData {}
- data AuthenticatorData = AuthenticatorData {}
- data AttestedCredentialData = AttestedCredentialData {}
- newtype AAGUID = AAGUID {}
- newtype CredentialPublicKey = CredentialPublicKey {}
- newtype CredentialId = CredentialId {}
- data User = User {}
- data VerificationFailure
- = InvalidType
- | MismatchedChallenge
- | MismatchedOrigin
- | UnexpectedPresenceOfTokenBinding
- | MismatchedTokenBinding
- | JSONDecodeError String
- | CBORDecodeError String DeserialiseFailure
- | MismatchedRPID
- | UserNotPresent
- | UserUnverified
- | UnsupportedAttestationFormat
- | UnsupportedAlgorithm Int
- | MalformedPublicKey
- | MalformedAuthenticatorData
- | MalformedX509Certificate
- | MalformedSignature
- | SignatureFailure String
Relying party
data RelyingParty Source #
WebAuthn Relying Party
Instances
Eq RelyingParty Source # | |
Defined in WebAuthn.Types (==) :: RelyingParty -> RelyingParty -> Bool # (/=) :: RelyingParty -> RelyingParty -> Bool # | |
Ord RelyingParty Source # | |
Defined in WebAuthn.Types compare :: RelyingParty -> RelyingParty -> Ordering # (<) :: RelyingParty -> RelyingParty -> Bool # (<=) :: RelyingParty -> RelyingParty -> Bool # (>) :: RelyingParty -> RelyingParty -> Bool # (>=) :: RelyingParty -> RelyingParty -> Bool # max :: RelyingParty -> RelyingParty -> RelyingParty # min :: RelyingParty -> RelyingParty -> RelyingParty # | |
Show RelyingParty Source # | |
Defined in WebAuthn.Types showsPrec :: Int -> RelyingParty -> ShowS # show :: RelyingParty -> String # showList :: [RelyingParty] -> ShowS # |
Origin | |
|
data TokenBinding Source #
state of the Token Binding protocol (unsupported)
Instances
FromJSON TokenBinding Source # | |
Defined in WebAuthn.Types parseJSON :: Value -> Parser TokenBinding # parseJSONList :: Value -> Parser [TokenBinding] # |
- 1. Cryptographic Challenges
data WebAuthnType Source #
Instances
Eq WebAuthnType Source # | |
Defined in WebAuthn.Types (==) :: WebAuthnType -> WebAuthnType -> Bool # (/=) :: WebAuthnType -> WebAuthnType -> Bool # | |
Ord WebAuthnType Source # | |
Defined in WebAuthn.Types compare :: WebAuthnType -> WebAuthnType -> Ordering # (<) :: WebAuthnType -> WebAuthnType -> Bool # (<=) :: WebAuthnType -> WebAuthnType -> Bool # (>) :: WebAuthnType -> WebAuthnType -> Bool # (>=) :: WebAuthnType -> WebAuthnType -> Bool # max :: WebAuthnType -> WebAuthnType -> WebAuthnType # min :: WebAuthnType -> WebAuthnType -> WebAuthnType # | |
Show WebAuthnType Source # | |
Defined in WebAuthn.Types showsPrec :: Int -> WebAuthnType -> ShowS # show :: WebAuthnType -> String # showList :: [WebAuthnType] -> ShowS # | |
FromJSON WebAuthnType Source # | |
Defined in WebAuthn.Types parseJSON :: Value -> Parser WebAuthnType # parseJSONList :: Value -> Parser [WebAuthnType] # |
data CollectedClientData Source #
- 10.1. Client Data Used in WebAuthn Signatures (dictionary CollectedClientData)
Instances
FromJSON CollectedClientData Source # | |
Defined in WebAuthn.Types parseJSON :: Value -> Parser CollectedClientData # parseJSONList :: Value -> Parser [CollectedClientData] # |
data AuthenticatorData Source #
- 1. Authenticator Data
Credential
data AttestedCredentialData Source #
- 4.1. Attested Credential Data
Instances
AAGUID of the authenticator
newtype CredentialPublicKey Source #
credential public key encoded in COSE_Key format
Instances
newtype CredentialId Source #
A probabilistically-unique byte sequence identifying a public key credential source and its authentication assertions.
Instances
- 4.3. User Account Parameters for Credential Generation
User | |
|
Instances
Eq User Source # | |
Show User Source # | |
Generic User Source # | |
Serialise User Source # | |
type Rep User Source # | |
Defined in WebAuthn.Types type Rep User = D1 (MetaData "User" "WebAuthn.Types" "webauthn-0-D7kkv1m3eu7AMrO2q5jdsU" False) (C1 (MetaCons "User" PrefixI True) (S1 (MetaSel (Just "userId") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 ByteString) :*: S1 (MetaSel (Just "userDisplayName") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text))) |
Exception
data VerificationFailure Source #
Instances
Show VerificationFailure Source # | |
Defined in WebAuthn.Types showsPrec :: Int -> VerificationFailure -> ShowS # show :: VerificationFailure -> String # showList :: [VerificationFailure] -> ShowS # |