login

package
v0.0.0-...-cce75fc Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndWithBrowser

func EndWithBrowser(h *Handler) (*types.User, error)

EndWithBrowser finishes the browser based auth

func WithBrowser

func WithBrowser(ctx context.Context, oktetoURL string) (*types.User, error)

WithBrowser authenticates the user with the browser

Types

type Controller

type Controller struct {
}

func NewLoginController

func NewLoginController() *Controller

func (*Controller) AuthenticateToOktetoCluster

func (*Controller) AuthenticateToOktetoCluster(ctx context.Context, oktetoURL, token string) (*types.User, error)

type Handler

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

Handler handles the authentication using a browser

func StartWithBrowser

func StartWithBrowser(ctx context.Context, u string) (*Handler, error)

StartWithBrowser starts the authentication of the user with the IDP via a browser

func (*Handler) AuthorizationURL

func (h *Handler) AuthorizationURL() (string, error)

AuthorizationURL returns the authorization URL used for login

type Interface

type Interface interface {
	AuthenticateToOktetoCluster(context.Context, string, string) (*types.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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