acator

package
v0.2.96 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Origin = "http://localhost"
)

Functions

func Login

func Login(i *Instance, jsonStream io.Reader) (outStream io.Reader, err error)

Login reads CredentialAssertion JSON from the input stream and same time process it and outputs CredentialAssertionResponse JSON to output stream.

func Register

func Register(i *Instance, jsonStream io.Reader) (outStream io.Reader, err error)

Register reads CredentialCreation JSON from the input stream and same time process it and outputs CredentialCreationResponse JSON to output stream.

func RegisterAsync added in v0.1.51

func RegisterAsync(i *Instance, jsonStream io.Reader) (outStream io.Reader, err error)

RegisterAsync reads CredentialCreation JSON from the input stream and same time process it and outputs CredentialCreationResponse JSON to output stream.

func SetDefInstance added in v0.2.74

func SetDefInstance(i *Instance)

SetDefInstance sets default instance. Mostly for tests.

func SetDefInstanceOrigin added in v0.2.74

func SetDefInstanceOrigin(s string)

SetDefInstanceOrigin sets the Origin. Mostly for tests.

Types

type Instance added in v0.2.74

type Instance struct {
	Counter uint32
	AAGUID  uuid.UUID
	Origin  *url.URL
}

Directories

Path Synopsis
Package authn implements WebAuthn Cmd to Register and Login.
Package authn implements WebAuthn Cmd to Register and Login.

Jump to

Keyboard shortcuts

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