authconfig

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	OIDC   *OIDCConfig      `yaml:"oidc"`
	Gitlab *GitlabConfig    `yaml:"gitlab"`
	Basic  *BasicAuthConfig `yaml:"basic"`
}

func (*AuthConfig) IsEnabled

func (c *AuthConfig) IsEnabled() bool

func (*AuthConfig) Providers

func (c *AuthConfig) Providers() []*authruntime.Provider

type BasicAuthConfig

type BasicAuthConfig struct {
	// Users is a list of htpasswd encoded username:password pairs
	// supports BCrypt, Sha, Ssha, Md5
	// example: "htpasswd -nB <username>"
	// copy the result into your user's array
	Users []string `yaml:"users"`
}

func (*BasicAuthConfig) Provider

func (c *BasicAuthConfig) Provider() *authruntime.Provider

type GitlabConfig

type GitlabConfig struct {
	Name         string   `yaml:"name"`
	BaseURL      string   `yaml:"baseURL"`
	ClientID     string   `yaml:"clientID"`
	ClientSecret string   `yaml:"clientSecret"`
	RedirectURL  string   `yaml:"redirectURL"`
	EmailDomains []string `yaml:"emailDomains"`
}

func (*GitlabConfig) Provider

func (c *GitlabConfig) Provider() *authruntime.Provider

type OIDCConfig

type OIDCConfig struct {
	Name         string                    `yaml:"name"`
	Issuer       string                    `yaml:"issuer"`
	ClientID     string                    `yaml:"clientID"`
	ClientSecret string                    `yaml:"clientSecret"`
	Scopes       []string                  `yaml:"scopes"`
	RedirectURL  string                    `yaml:"redirectURL"`
	EmailDomains []string                  `yaml:"emailDomains"`
	ClaimMapping map[string]ruleExpression `yaml:"claimMapping"`
}

func (*OIDCConfig) Provider

func (c *OIDCConfig) Provider() *authruntime.Provider

Jump to

Keyboard shortcuts

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