auth

package
v0.0.0-...-06cc741 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDC

type OIDC struct {
	// contains filtered or unexported fields
}

func NewOIDC

func NewOIDC(
	logger *slog.Logger,
	state *state.Data,
	clientID string,
	issuerEndpoint string,
	client userv1alpha1.UserServiceClient,
) *OIDC

func (OIDC) APIToken

func (svc OIDC) APIToken(ctx context.Context) (string, error)

func (OIDC) IDToken

func (svc OIDC) IDToken(ctx context.Context) (string, error)

type Service

type Service interface {
	APIToken(ctx context.Context) (string, error)
	IDToken(ctx context.Context) (string, error)
}

Jump to

Keyboard shortcuts

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