authproxy

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 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 {
	UserIDHeader         string   `json:"userIDHeader"`
	UserHeader           string   `json:"userHeader"`
	UserNameHeader       string   `json:"userNameHeader"`
	EmailHeader          string   `json:"emailHeader"`
	GroupHeader          string   `json:"groupHeader"`
	GroupHeaderSeparator string   `json:"groupHeaderSeparator"`
	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