Versions in this module Expand all Collapse all v0 v0.1.7 Nov 3, 2026 v0.1.6 Oct 27, 2026 Changes in this version + var ErrAuthCode = errors.New("oidc: auth code exchange failed") + var ErrCallbackServer = errors.New("oidc: callback server failed") + var ErrClientCredentials = errors.New("oidc: client credentials exchange failed") + var ErrDeviceCode = errors.New("oidc: device code flow failed") + var ErrDiscovery = errors.New("oidc: discovery failed") + var ErrOIDCConfig = errors.New("oidc: gateway OIDC config missing") + var ErrTimeout = errors.New("oidc: login timed out") + var ErrTokenPersist = errors.New("oidc: token persistence failed") + func ClientCredentials(ctx context.Context, opts ...LoginOption) (*oauth2.Token, error) + func DeviceLogin(ctx context.Context, opts ...LoginOption) (*oauth2.Token, error) + func Login(ctx context.Context, gatewayName string, opts ...LoginOption) (*oauth2.Token, error) + func NewClientCredentialsAuth(opts ...LoginOption) (types.AuthProvider, error) + type LoginOption func(*loginConfig) + func WithAudience(audience string) LoginOption + func WithCallbackPort(port int) LoginOption + func WithClientID(id string) LoginOption + func WithClientSecret(secret string) LoginOption + func WithClientSecretProvider(provider func(context.Context) (string, error)) LoginOption + func WithDisplayFunc(fn func(verificationURL, userCode string)) LoginOption + func WithGateway(name string) LoginOption + func WithInMemory() LoginOption + func WithIssuer(url string) LoginOption + func WithKeyboardFlow() LoginOption + func WithScopes(scopes ...string) LoginOption + func WithTimeout(d time.Duration) LoginOption