Documentation
¶
Index ¶
- Variables
- type Config
- type CreateEmailChangeChallengeInput
- type CreatePasswordResetChallengeInput
- type CreateSignupChallengeInput
- type Service
- func (s *Service) CreateEmailChangeChallenge(ctx context.Context, in CreateEmailChangeChallengeInput, now time.Time) (uuid.UUID, error)
- func (s *Service) CreateOpaqueChallenge(ctx context.Context, now time.Time, purpose domain.ChallengePurpose, ...) (uuid.UUID, error)
- func (s *Service) CreatePasswordResetChallenge(ctx context.Context, in CreatePasswordResetChallengeInput, now time.Time) (uuid.UUID, error)
- func (s *Service) CreateSignupChallenge(ctx context.Context, in CreateSignupChallengeInput, now time.Time) (uuid.UUID, error)
- func (s *Service) ExecuteEmailChange(ctx context.Context, action domain.PendingEmailChange, now time.Time) error
- func (s *Service) ExecutePasswordReset(ctx context.Context, action domain.PendingPasswordReset, now time.Time) error
- func (s *Service) ResendChallenge(ctx context.Context, challengeID uuid.UUID, now time.Time) error
- func (s *Service) VerifyEmailChangeChallenge(ctx context.Context, challengeID uuid.UUID, code string, ...) (*VerifyEmailChangeChallengeResult, error)
- func (s *Service) VerifyPasswordResetChallenge(ctx context.Context, challengeID uuid.UUID, code string, ...) (*VerifyPasswordResetChallengeResult, error)
- func (s *Service) VerifySignupChallenge(ctx context.Context, challengeID uuid.UUID, code string, ...) (*VerifySignupChallengeResult, error)
- type VerificationCodeService
- type VerifyEmailChangeChallengeResult
- type VerifyPasswordResetChallengeResult
- type VerifySignupChallengeResult
- type Worker
- type WorkerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrChallengeExpired = errors.New("challenge expired") ErrChallengeConsumed = errors.New("challenge already consumed") ErrTooManyAttempts = errors.New("too many verification attempts") ErrTooManyResends = errors.New("too many resend attempts") ErrResendTooSoon = errors.New("resend requested too soon") ErrInvalidVerificationCode = errors.New("invalid verification code") ErrUnsupportedChallengePurpose = errors.New("unsupported challenge purpose") )
Functions ¶
This section is empty.
Types ¶
type CreateEmailChangeChallengeInput ¶ added in v0.1.15
type CreatePasswordResetChallengeInput ¶ added in v0.1.14
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateEmailChangeChallenge ¶ added in v0.1.15
func (*Service) CreateOpaqueChallenge ¶
func (*Service) CreatePasswordResetChallenge ¶ added in v0.1.14
func (*Service) CreateSignupChallenge ¶
func (*Service) ExecuteEmailChange ¶ added in v0.1.15
func (*Service) ExecutePasswordReset ¶ added in v0.1.14
func (*Service) ResendChallenge ¶
func (*Service) VerifyEmailChangeChallenge ¶ added in v0.1.15
func (*Service) VerifyPasswordResetChallenge ¶ added in v0.1.14
func (*Service) VerifySignupChallenge ¶
type VerificationCodeService ¶
type VerificationCodeService struct {
// contains filtered or unexported fields
}
func (*VerificationCodeService) GenerateCode ¶
type VerifyEmailChangeChallengeResult ¶ added in v0.1.15
type VerifyEmailChangeChallengeResult struct {
Challenge domain.Challenge
Action domain.PendingEmailChange
}
type VerifyPasswordResetChallengeResult ¶ added in v0.1.14
type VerifyPasswordResetChallengeResult struct {
Challenge domain.Challenge
Action domain.PendingPasswordReset
}
type VerifySignupChallengeResult ¶
type VerifySignupChallengeResult struct {
Challenge domain.Challenge
Action domain.PendingSignupAction
}
Click to show internal directories.
Click to hide internal directories.