Versions in this module Expand all Collapse all v0 v0.3.4 Nov 12, 2018 Changes in this version + type AndroidSafetyNetAttestionResponse struct + ApkCertificateDigestSha256 [][]byte + ApkDigestSha256 []byte + ApkPackageName string + BasicIntegrity bool + CtsProfileMatch bool + Nonce []byte + TimestampMs int64 v0.3.3 Sep 28, 2018 v0.3.2 Sep 22, 2018 v0.3.1 Sep 22, 2018 Changes in this version + const AttestationConveyancePreferenceDirect + const AttestationConveyancePreferenceIndirect + const AttestationConveyancePreferenceNone + const AuthenticatorDataFlagHasCredentialData + const AuthenticatorDataFlagHasExtension + const AuthenticatorDataFlagUserPresent + const AuthenticatorDataFlagUserVerified + const AuthenticatorTransportBLE + const AuthenticatorTransportInternal + const AuthenticatorTransportNFC + const AuthenticatorTransportUSB + const ChallengeSize + const UserVerificationDiscouraged + const UserVerificationPreferred + const UserVerificationRequired + var ErrInvalidAttestation = &Error + var ErrInvalidChallenge = &Error + var ErrInvalidOrigin = &Error + var ErrInvalidRequest = &Error + var ErrInvalidSignature = &Error + var ErrInvalidType = &Error + var ErrNoUserPresent = &Error + var ErrUnsupportedAttestationFormat = &Error + func IsValidAssertion(p ParsedAssertionResponse, originalChallenge []byte, ...) (bool, error) + func IsValidAttestation(p ParsedAttestationResponse, originalChallenge []byte, ...) (bool, error) + func RegisterFormat(name string, f AttestationFormatFunction) + type AssertionResponse struct + Response AuthenticatorAssertionResponse + type Attestation struct + AttStmt map[string]interface{} + AuthData AuthenticatorData + Fmt string + func (a Attestation) IsValid(relyingPartyID string, clientDataHash []byte) error + type AttestationConveyancePreference string + type AttestationFormatFunction func(Attestation, []byte) error + type AttestationResponse struct + Response AuthenticatorAttestationResponse + type AttestedCredentialData struct + AAGUID []byte + COSEKey interface{} + CredentialID []byte + type AuthenticationExtensionsClientInputs map[string]interface + type AuthenticatorAssertionResponse struct + AuthenticatorData []byte + Signature []byte + UserHandle []byte + type AuthenticatorAttachment string + const AuthenticatorAttachmentCrossPlatform + const AuthenticatorAttachmentPlatform + type AuthenticatorAttestationResponse struct + AttestationObject []byte + type AuthenticatorData struct + AttestedCredentialData AttestedCredentialData + Flags AuthenticatorDataFlags + RPIDHash []byte + Raw []byte + SignCount uint32 + func (a *AuthenticatorData) MarshalBinary() ([]byte, error) + func (a *AuthenticatorData) UnmarshalBinary(authData []byte) error + func (a AuthenticatorData) IsValid(relyingPartyID string) error + type AuthenticatorDataFlags byte + func (f AuthenticatorDataFlags) HasAttestedCredentialData() bool + func (f AuthenticatorDataFlags) HasExtensions() bool + func (f AuthenticatorDataFlags) UserPresent() bool + func (f AuthenticatorDataFlags) UserVerified() bool + type AuthenticatorResponse struct + ClientDataJSON []byte + type AuthenticatorSelectionCriteria struct + AuthenticatorAttachment AuthenticatorAttachment + RequireResidentKey bool + UserVerification UserVerificationRequirement + type AuthenticatorTransport string + type COSEAlgorithmIdentifier int + const ES256 + const RS256 + type Challenge []byte + func NewChallenge() (Challenge, error) + type CollectedClientData struct + Challenge string + Origin string + TokenBinding *TokenBinding + Type string + func (c CollectedClientData) IsValid(requiredType string, originalChallenge []byte, relyingPartyOrigin string) error + type CredentialCreationOptions struct + PublicKey PublicKeyCredentialCreationOptions + type CredentialRequestOptions struct + PublicKey PublicKeyCredentialRequestOptions + type Error struct + Code int + Debug string + Description string + Hint string + Name string + func ToWebAuthnError(err error) *Error + func (e *Error) Error() string + func (e *Error) WithDebug(debug string) *Error + func (e *Error) WithDebugf(debug string, args ...interface{}) *Error + func (e *Error) WithHint(hint string) *Error + func (e *Error) WithHintf(hint string, args ...interface{}) *Error + type ParsedAssertionResponse struct + RawResponse AssertionResponse + Response ParsedAuthenticatorAssertionResponse + func ParseAssertionResponse(p AssertionResponse) (ParsedAssertionResponse, error) + type ParsedAttestationResponse struct + RawResponse AttestationResponse + Response ParsedAuthenticatorAttestationResponse + func ParseAttestationResponse(p AttestationResponse) (ParsedAttestationResponse, error) + type ParsedAuthenticatorAssertionResponse struct + AuthData AuthenticatorData + Signature []byte + UserHandle []byte + type ParsedAuthenticatorAttestationResponse struct + Attestation Attestation + type ParsedAuthenticatorResponse struct + ClientData CollectedClientData + type ParsedPublicKeyCredential struct + ID string + RawID []byte + Type string + type PublicKeyCredential struct + ID string + RawID []byte + Type string + type PublicKeyCredentialCreationOptions struct + Attestation AttestationConveyancePreference + AuthenticatorSelection AuthenticatorSelectionCriteria + Challenge Challenge + ExcludeCredentials []PublicKeyCredentialDescriptor + Extensions AuthenticationExtensionsClientInputs + PubKeyCredParams []PublicKeyCredentialParameters + RP PublicKeyCredentialRpEntity + Timeout uint + User PublicKeyCredentialUserEntity + type PublicKeyCredentialDescriptor struct + ID []byte + Transport []AuthenticatorTransport + Type PublicKeyCredentialType + type PublicKeyCredentialEntity struct + Name string + type PublicKeyCredentialParameters struct + Algorithm COSEAlgorithmIdentifier + Type PublicKeyCredentialType + type PublicKeyCredentialRequestOptions struct + AllowCredentials []PublicKeyCredentialDescriptor + Challenge Challenge + Extensions AuthenticationExtensionsClientInputs + RPID string + Timeout uint + UserVerification UserVerificationRequirement + type PublicKeyCredentialRpEntity struct + ID string + type PublicKeyCredentialType string + const PublicKeyCredentialTypePublicKey + type PublicKeyCredentialUserEntity struct + DisplayName string + ID []byte + type TokenBinding struct + ID string + Status TokenBindingStatus + type TokenBindingStatus string + const TokenBindingStatusPresent + const TokenBindingStatusSupported + type UserVerificationRequirement string