provider

package
v0.6.26-beta.10 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceProvider

type ServiceProvider interface {
	CredentialEntity() protocol.CredentialEntity
	GetServiceRecord() *types.ServiceRecord
	GetCredentialCreationOptions(alias string, addr string, isMobile bool) (string, error)
	GetCredentialAssertionOptions(alias string, allowedCredentials []protocol.CredentialDescriptor, isMobile bool) (string, error)
	RelyingPartyEntity() protocol.RelyingPartyEntity
	VerifyCreationChallenge(resp string, alias string) (*types.WebauthnCredential, error)
	VerifyAssertionChallenge(resp string, creds ...*idtypes.VerificationMethod) error
}

func NewServiceProvider

func NewServiceProvider(record *types.ServiceRecord) ServiceProvider

type Session

type Session struct {
	Alias     string                    `json:"alias"`
	Address   string                    `json:"address"`
	Challenge protocol.URLEncodedBase64 `json:"challenge"`
	IsMobile  bool                      `json:"isMobile"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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