Documentation
¶
Index ¶
- Variables
- type CallbackURI
- type ChallengeService
- func (s *ChallengeService) Consume(ctx context.Context, id uuid.UUID, provider domain.Provider, state string, ...) (domain.OAuthAuthenticationChallenge, error)
- func (s *ChallengeService) Create(ctx context.Context, provider domain.Provider, now time.Time) (domain.OAuthAuthenticationChallenge, error)
- type ChallengeStore
- type OAuthProvider
- type OAuthProviders
- type TransactionManager
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAuthenticationChallenge = errors.New("invalid oauth authentication challenge")
Functions ¶
This section is empty.
Types ¶
type CallbackURI ¶
type CallbackURI string
type ChallengeService ¶ added in v0.26.0
type ChallengeService struct {
// contains filtered or unexported fields
}
func NewChallengeService ¶ added in v0.26.0
func NewChallengeService(challengeStore ChallengeStore, tx TransactionManager) *ChallengeService
type ChallengeStore ¶ added in v0.26.0
type ChallengeStore interface {
CreateOAuthAuthenticationChallenge(context.Context, domain.OAuthAuthenticationChallenge) (domain.OAuthAuthenticationChallenge, error)
GetOAuthAuthenticationChallengeForUpdate(context.Context, uuid.UUID) (domain.OAuthAuthenticationChallenge, error)
ConsumeOAuthAuthenticationChallenge(context.Context, uuid.UUID, time.Time) error
}
type OAuthProvider ¶
func NewOAuthProvider ¶
func NewOAuthProvider(providerName domain.Provider, clientID, appURL string) OAuthProvider
type OAuthProviders ¶
type OAuthProviders struct {
Providers []OAuthProvider
}
Click to show internal directories.
Click to hide internal directories.