internal

package
v0.0.0-...-e3a4c94 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address string   `yaml:"address"`
	Port    int      `yaml:"port"`
	Issuers []Issuer `yaml:"issuers"`
}

func (*Config) Handler

func (c *Config) Handler(w http.ResponseWriter, r *http.Request)

type Identity

type Identity struct {
	UID      string
	Username string
	Groups   []string
}

type IdentityTemplate

type IdentityTemplate struct {
	UID         *template.Template
	Username    *template.Template
	Group       *template.Template
	GroupsField string
}

func (*IdentityTemplate) UnmarshalYAML

func (x *IdentityTemplate) UnmarshalYAML(unmarshal func(interface{}) error) error

type Issuer

type Issuer struct {
	Name      string           `yaml:"name"`
	Issuer    string           `yaml:"issuer"`
	PublicKey PublicKey        `yaml:"publicKey"`
	Template  IdentityTemplate `yaml:"template"`
}

type PublicKey

type PublicKey struct {
	Data interface{}
}

func (*PublicKey) UnmarshalYAML

func (x *PublicKey) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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