Documentation
¶
Index ¶
- func BuildWebAuthn(r *http.Request) (*webauthn.WebAuthn, error)
- func BuildWebAuthnWithSettings(r *http.Request, settings *system_setting.PasskeySettings) (*webauthn.WebAuthn, error)
- func CreateSessionDataFlow(purpose string, userID int, sessionID, scope string, ...) (string, int64, error)
- func PopSessionDataFlow(token, purpose string, userID int, sessionID string) (*webauthn.SessionData, string, error)
- type WebAuthnUser
- func (u *WebAuthnUser) ModelUser() *model.User
- func (u *WebAuthnUser) PasskeyCredential() *model.PasskeyCredential
- func (u *WebAuthnUser) WebAuthnCredentials() []webauthn.Credential
- func (u *WebAuthnUser) WebAuthnDisplayName() string
- func (u *WebAuthnUser) WebAuthnID() []byte
- func (u *WebAuthnUser) WebAuthnName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildWebAuthn ¶
BuildWebAuthn constructs a WebAuthn instance using one current Passkey settings snapshot and the request context.
func BuildWebAuthnWithSettings ¶
func BuildWebAuthnWithSettings(r *http.Request, settings *system_setting.PasskeySettings) (*webauthn.WebAuthn, error)
BuildWebAuthnWithSettings constructs a WebAuthn instance from one caller supplied settings snapshot. Request handlers use it after checking Enabled so a hot configuration update cannot mix the enablement decision with RP settings later in the same request.
func CreateSessionDataFlow ¶
func PopSessionDataFlow ¶
Types ¶
type WebAuthnUser ¶
type WebAuthnUser struct {
// contains filtered or unexported fields
}
func NewWebAuthnUser ¶
func NewWebAuthnUser(user *model.User, credential *model.PasskeyCredential) *WebAuthnUser
func (*WebAuthnUser) ModelUser ¶
func (u *WebAuthnUser) ModelUser() *model.User
func (*WebAuthnUser) PasskeyCredential ¶
func (u *WebAuthnUser) PasskeyCredential() *model.PasskeyCredential
func (*WebAuthnUser) WebAuthnCredentials ¶
func (u *WebAuthnUser) WebAuthnCredentials() []webauthn.Credential
func (*WebAuthnUser) WebAuthnDisplayName ¶
func (u *WebAuthnUser) WebAuthnDisplayName() string
func (*WebAuthnUser) WebAuthnID ¶
func (u *WebAuthnUser) WebAuthnID() []byte
func (*WebAuthnUser) WebAuthnName ¶
func (u *WebAuthnUser) WebAuthnName() string
Click to show internal directories.
Click to hide internal directories.