oauth

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func (*ChallengeService) Consume added in v0.26.0

func (*ChallengeService) Create added in v0.26.0

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

type OAuthProvider struct {
	Name        domain.Provider
	ClientID    string
	RedirectURI string
}

func NewOAuthProvider

func NewOAuthProvider(providerName domain.Provider, clientID, appURL string) OAuthProvider

type OAuthProviders

type OAuthProviders struct {
	Providers []OAuthProvider
}

type TransactionManager added in v0.26.0

type TransactionManager interface {
	WithTransaction(context.Context, func(context.Context) error) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL