setup

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package setup provides the use case of setting up environment.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Interface

type Interface interface {
	DoStage1()
	DoStage2(ctx context.Context, in Stage2Input) error
}

type Setup

type Setup struct {
	Authentication authentication.Interface
	Logger         logger.Interface
}

func (*Setup) DoStage1

func (u *Setup) DoStage1()

func (*Setup) DoStage2

func (u *Setup) DoStage2(ctx context.Context, in Stage2Input) error

type Stage2Input

type Stage2Input struct {
	IssuerURL         string
	ClientID          string
	ClientSecret      string
	ExtraScopes       []string // optional
	UseAccessToken    bool     // optional
	ListenAddressArgs []string // non-nil if set by the command arg
	PKCEMethod        oidc.PKCEMethod
	PKCEMethodArg     string
	GrantOptionSet    authentication.GrantOptionSet
	TLSClientConfig   tlsclientconfig.Config
}

Stage2Input represents an input DTO of the stage2.

Jump to

Keyboard shortcuts

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