session

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound      = errors.New("not found")
	ErrTenantBlocked = errors.New("the tenant is blocked")
)

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(grpcConn *grpc.ClientConn, opts ...ManagerOption) (*Manager, error)

func (*Manager) GetOIDCProvider added in v0.11.3

func (m *Manager) GetOIDCProvider(ctx context.Context, tenantID string) (*oidc.Provider, error)

func (*Manager) GetSession

func (m *Manager) GetSession(ctx context.Context, sessionID, tenantID string) (*Session, error)

type ManagerOption

type ManagerOption func(*Manager)

func WithOAuth2ClientBuilder added in v0.12.0

func WithOAuth2ClientBuilder(b oauth2client.Builder) ManagerOption

type Session

type Session struct {
	Valid       bool
	Issuer      string
	Subject     string
	GivenName   string
	FamilyName  string
	Email       string
	Groups      []string
	AuthContext map[string]string
}

Jump to

Keyboard shortcuts

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