Documentation
¶
Index ¶
- Variables
- type User
- func (u *User) CredentialExcludeList() []protocol.CredentialDescriptor
- func (u *User) UpdateDatabase() error
- func (u *User) WebAuthnCredentials() []duo.Credential
- func (u *User) WebAuthnDisplayName() string
- func (u *User) WebAuthnID() []byte
- func (u *User) WebAuthnIcon() string
- func (u *User) WebAuthnName() string
- type WebAuthn
- func (w *WebAuthn) CompleteSignUp(userID uint64, mfaConf map[string]string) error
- func (w *WebAuthn) InitSignUp(userID uint64, username string) (map[string]interface{}, error)
- func (w *WebAuthn) NewChallenge(userID uint64) (map[string]interface{}, error)
- func (*WebAuthn) Registered(userID uint64) bool
- func (*WebAuthn) Remove(userID uint64) error
- func (w *WebAuthn) SubmitChallenge(userID uint64, challengeResponse map[string]string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ExampleWebAuthnConfig = map[string]string{
"RPDisplayName": "Ulysses Default DisplayName",
"RPID": "localhost",
"RPOriginURL": "http://localhost:8081",
"RPIconURL": "http://localhost:8081/favicon.ico",
}
)
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uint64 UserName string // DisplayName string // Use UserName instead IconURL string // Baked in by WebAuthn struct AuthnCredentials []duo.Credential // Load from DB (if any) }
func (*User) CredentialExcludeList ¶
func (u *User) CredentialExcludeList() []protocol.CredentialDescriptor
func (*User) UpdateDatabase ¶
func (*User) WebAuthnCredentials ¶
func (u *User) WebAuthnCredentials() []duo.Credential
func (*User) WebAuthnDisplayName ¶
func (*User) WebAuthnID ¶
func (*User) WebAuthnIcon ¶
func (*User) WebAuthnName ¶
type WebAuthn ¶
type WebAuthn struct {
// contains filtered or unexported fields
}
func NewWebAuthn ¶
func (*WebAuthn) CompleteSignUp ¶
func (*WebAuthn) InitSignUp ¶
func (*WebAuthn) NewChallenge ¶
func (*WebAuthn) Registered ¶
Click to show internal directories.
Click to hide internal directories.