auth

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeProvider

func FakeProvider() authOption

func New

func New(c Config, options ...authOption) (*auth, error)

func OIDCHubProvider

func OIDCHubProvider(c ProviderConfig) authOption

Types

type Config

type Config struct {
	TokenService token.TokenService
	Repo         *repository.Store
	Auditing     auditing.Auditing
	Log          *slog.Logger
	CallbackUrl  string // will replace `"{" + providerKey + ""}"` with the actual provider name
	FrontEndUrl  *url.URL
	CookieMaxAge time.Duration
}

type ProviderConfig

type ProviderConfig struct {
	ClientID      string
	ClientSecret  string
	DiscoveryURL  string
	EndsessionURL string
	UniqueUserKey *string
	TLSSkipVerify bool
}

Jump to

Keyboard shortcuts

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