Versions in this module Expand all Collapse all v1 v1.2.0 May 8, 2020 v1.1.0 May 8, 2020 v1.0.3 May 8, 2020 v1.0.2 May 8, 2020 v1.0.1 May 8, 2020 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 + Cause error + Code int + Debug string + Description string + Hint string + Name string + func ToWebAuthnError(err error) *Error + func (e *Error) Error() string + func (e *Error) WithCause(cause error) *Error + 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