authproxy

package
v0.0.0-...-2476f0e Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 51

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 {
	UserIDHeader string   `json:"userIDHeader"`
	UserHeader   string   `json:"userHeader"`
	EmailHeader  string   `json:"emailHeader"`
	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 *slog.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