oauth

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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