webauthn

package
v0.0.0-...-495e01f Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WebAuthn *webauthn.WebAuthn

WebAuthn represents the global WebAuthn instance

Functions

func Init

func Init()

Init initializes the WebAuthn instance from the config.

Types

type User

type User user_model.User

User represents an implementation of webauthn.User based on User model

func (*User) WebAuthnCredentials

func (u *User) WebAuthnCredentials() []webauthn.Credential

WebAuthnIcon implements the webauthn.User interface

func (u *User) WebAuthnIcon() string {
	//return (*user_model.User)(u).AvatarLink(db.DefaultContext)
	return  nil;
}

WebAuthnCredentials implementns the webauthn.User interface

func (*User) WebAuthnDisplayName

func (u *User) WebAuthnDisplayName() string

WebAuthnDisplayName implements the webauthn.User interface

func (*User) WebAuthnID

func (u *User) WebAuthnID() []byte

WebAuthnID implements the webauthn.User interface

func (*User) WebAuthnName

func (u *User) WebAuthnName() string

WebAuthnName implements the webauthn.User interface

Jump to

Keyboard shortcuts

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