oauthsessions

package
v0.0.0-...-9bbed00 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllOauthSessions

func GetAllOauthSessions(ctx context.Context) ([]*api.OauthSession, error)

func GetOauthSession

func GetOauthSession(ctx context.Context) (*api.OauthSession, error)

Types

type OAuthSessionsComponent

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

func GetComponent

func GetComponent(ctx context.Context) *OAuthSessionsComponent

func NewOAuthSessionsComponent

func NewOAuthSessionsComponent(kube *kubeclient.Client) (*OAuthSessionsComponent, error)

func (*OAuthSessionsComponent) AddToScope

func (c *OAuthSessionsComponent) AddToScope(ctx context.Context, scope *scopes.Scope)

func (*OAuthSessionsComponent) LoadOauthSessions

func (c *OAuthSessionsComponent) LoadOauthSessions(ctx context.Context, user *userapi.User) ([]*api.OauthSession, error)

func (*OAuthSessionsComponent) RefreshSession

func (c *OAuthSessionsComponent) RefreshSession(ctx context.Context, session *api.OauthSession) error

func (*OAuthSessionsComponent) RegisterHandlers

func (c *OAuthSessionsComponent) RegisterHandlers(s *components.Server, mux *http.ServeMux) error

func (*OAuthSessionsComponent) StoreSession

func (c *OAuthSessionsComponent) StoreSession(ctx context.Context, token *oauth2.Token) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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