authproxy

package
v0.0.0-...-c3b95e6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package authproxy implements a connector which relies on external authentication (e.g. mod_auth in Apache2) and returns an identity with the HTTP header X-Remote-User as verified email.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UserHeader  string   `json:"userHeader"`
	GroupHeader string   `json:"groupHeader"`
	Groups      []string `json:"staticGroups"`
}

Config holds the configuration parameters for a connector which returns an identity with the HTTP header X-Remote-User as verified email, X-Remote-Group and configured staticGroups as user's group. Headers retrieved to fetch user's email and group can be configured with userHeader and groupHeader.

func (*Config) Open

func (c *Config) Open(id string, logger log.Logger) (connector.Connector, error)

Open returns an authentication strategy which requires no user interaction.

Jump to

Keyboard shortcuts

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