Documentation
¶
Index ¶
- type WebAuthnDevice
- func (wa *WebAuthnDevice) LoginResp(credAssert *protocol.CredentialAssertion) (*protocol.ParsedCredentialAssertionData, error)
- func (wa *WebAuthnDevice) RegResp(createCreation *protocol.CredentialCreation) (*protocol.ParsedCredentialCreationData, error)
- func (wa *WebAuthnDevice) SignLoginChallenge(loginRespData *protocol.ParsedCredentialAssertionData) (*protocol.ParsedCredentialAssertionData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebAuthnDevice ¶
type WebAuthnDevice struct { PubkeyCbor []byte RpID string RpIDHash []byte Userhandle []byte RawID []byte AuthFlags byte Counter uint32 // contains filtered or unexported fields }
For testing purposes we create a WebAuthn device to run the client part of the protocol
func NewWebauthnDevice ¶
func NewWebauthnDevice(rpID string) (*WebAuthnDevice, error)
func (*WebAuthnDevice) LoginResp ¶
func (wa *WebAuthnDevice) LoginResp(credAssert *protocol.CredentialAssertion) (*protocol.ParsedCredentialAssertionData, error)
func (*WebAuthnDevice) RegResp ¶
func (wa *WebAuthnDevice) RegResp(createCreation *protocol.CredentialCreation) (*protocol.ParsedCredentialCreationData, error)
func (*WebAuthnDevice) SignLoginChallenge ¶
func (wa *WebAuthnDevice) SignLoginChallenge(loginRespData *protocol.ParsedCredentialAssertionData) (*protocol.ParsedCredentialAssertionData, error)
Click to show internal directories.
Click to hide internal directories.