Documentation
¶
Index ¶
- Variables
- type AuthenticationDecision
- type Config
- type ListOptions
- type LoginResult
- type OptionsResponse
- type PasskeyPage
- type RegistrationMetadata
- type Service
- func (s *Service) BeginLogin(ctx context.Context) ([]byte, uuid.UUID, error)
- func (s *Service) BeginReauthentication(ctx context.Context, userID uuid.UUID, sessionID uuid.UUID) ([]byte, uuid.UUID, error)
- func (s *Service) BeginRegistration(ctx context.Context, userID uuid.UUID) ([]byte, uuid.UUID, error)
- func (s *Service) DeletePasskey(ctx context.Context, userID uuid.UUID, passkeyID uuid.UUID) error
- func (s *Service) FinishLogin(ctx context.Context, challengeID uuid.UUID, assertionResponseJSON []byte, ...) (LoginResult, error)
- func (s *Service) FinishReauthentication(ctx context.Context, userID uuid.UUID, sessionID uuid.UUID, ...) (AuthenticationDecision, error)
- func (s *Service) FinishRegistration(ctx context.Context, userID uuid.UUID, challengeID uuid.UUID, ...) error
- func (s *Service) ListUserPasskeys(ctx context.Context, userID uuid.UUID) ([]domain.Passkey, error)
- func (s *Service) ListUserPasskeysPage(ctx context.Context, userID uuid.UUID, options ListOptions) (PasskeyPage, error)
- type SessionRevoker
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPasskeyNotFound = auth.ErrPasskeyNotFound ErrPasskeyAlreadyExists = auth.ErrPasskeyAlreadyExists ErrPasskeyRegistrationInvalid = auth.ErrPasskeyRegistrationInvalid ErrPasskeyAuthenticationInvalid = auth.ErrPasskeyAuthenticationInvalid ErrCannotRemoveLastAuthMethod = auth.ErrCannotRemoveLastAuthMethod ErrCannotRemoveLastAuthProvider = ErrCannotRemoveLastAuthMethod )
View Source
var ErrInvalidListPage = errors.New("invalid passkey list page")
Functions ¶
This section is empty.
Types ¶
type AuthenticationDecision ¶ added in v0.22.0
type AuthenticationDecision struct {
AllowSession bool
}
type ListOptions ¶ added in v0.22.0
type LoginResult ¶ added in v0.22.0
type LoginResult struct {
User domain.User
PasskeyID uuid.UUID
Decision AuthenticationDecision
}
type OptionsResponse ¶
type OptionsResponse struct {
ChallengeID string `json:"challenge_id"`
Options json.RawMessage `json:"options"`
}
type RegistrationMetadata ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) BeginLogin ¶
func (*Service) BeginReauthentication ¶ added in v0.22.0
func (*Service) BeginRegistration ¶
func (*Service) DeletePasskey ¶
func (*Service) FinishLogin ¶
func (*Service) FinishReauthentication ¶ added in v0.22.0
func (*Service) FinishRegistration ¶
func (*Service) ListUserPasskeys ¶
func (*Service) ListUserPasskeysPage ¶ added in v0.22.0
func (s *Service) ListUserPasskeysPage(ctx context.Context, userID uuid.UUID, options ListOptions) (PasskeyPage, error)
Click to show internal directories.
Click to hide internal directories.