assertion

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assertion

type Assertion struct {
	AuthenticatorData    authenticator.AuthenticatorData
	RawAuthenticatorData []byte `json:"authenticatorData"`
	Signature            []byte `json:"signature"`
}

type AuthenticatorAssertionResponse

type AuthenticatorAssertionResponse struct {
	ClientDataJSON ClientData
	RawClientData  utils.URLEncodedBase64 `json:"clientData"`
	Assertion      utils.URLEncodedBase64 `json:"assertion"`
}

func (*AuthenticatorAssertionResponse) Verify

func (aar *AuthenticatorAssertionResponse) Verify(storedChallenge string, relyingPartyID string, previousCounter uint32, publicKey []byte) (uint32, error)

type ClientData

type ClientData struct {
	Challenge string `json:"challenge"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL