config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderGeneric = "generic"
	ProviderAzureAd = "azuread"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Provider     string   `env:"OAUTH2_PROVIDER" envDefault:"generic"`
	AuthTimeout  int      `env:"OAUTH2_AUTH_TIMEOUT" envDefault:"300"`
	UrlHelper    url.URL  `env:"OAUTH2_URL_HELPER" envDefault:"https://jkroepke.github.io/openvpn-auth-oauth2/"`
	CnBypassAuth []string `env:"OAUTH2_CN_BYPASS_AUTH" envDefault:"" envSeparator:","`
}

func LoadConfig

func LoadConfig() (Config, error)

Jump to

Keyboard shortcuts

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