Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PatchMux ¶
func PatchMux( mux *mux.Mux, sessionHandler SessionHandler, userHandler UserHandler, originUrl *url.URL, relyingParty *webauthn.RelyingParty, allowedCoseAlgorithms []int, options ...passkeyConfig.Option, ) error
Types ¶
type SessionHandler ¶
type UserHandler ¶
type UserHandler interface {
GetPublicKeyCredential(ctx context.Context, credentialId []byte) (*types.SigningData, error)
AddPublicKeyCredential(ctx context.Context, userId string, credential *webauthn.AttestationPublicKeyCredential) error
UpdatePublicKeyCredential(ctx context.Context, credentialId []byte, signatureCount uint32) error
AddRegistrationIssuance(ctx context.Context, userId string, challenge []byte) error
DeleteRegistrationIssuance(ctx context.Context, challenge []byte) (string, error)
// TODO: Maybe this should return an error as well?
GenerateUserId(ctx context.Context) string
AddUser(ctx context.Context, userId string, emailAddress string) error
}
Click to show internal directories.
Click to hide internal directories.