fetch_dex_token

package
v0.0.0-...-face4fc Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(config IdProviderConfig) (string, error)

Types

type ClientConfig

type ClientConfig struct {
	ID          string
	RedirectUri string
}

type Config

type Config struct {
	Domain       string `envconfig:"default=kyma.local"`
	UserEmail    string
	UserPassword string
}

func LoadConfig

func LoadConfig() (Config, error)

func (*Config) IdProviderConfig

func (c *Config) IdProviderConfig() IdProviderConfig

type DexConfig

type DexConfig struct {
	BaseUrl           string
	AuthorizeEndpoint string
	TokenEndpoint     string
}

type IdProviderConfig

type IdProviderConfig struct {
	DexConfig       DexConfig
	ClientConfig    ClientConfig
	UserCredentials UserCredentials
}

type UserCredentials

type UserCredentials struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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