authconverter

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 5 Imported by: 0

README

Simple Traefik middleware that extracts password from Basic Authorization header and saves it as a Bearer Authorization header

Documentation

Index

Constants

View Source
const (
	HeaderName string = "Authorization"
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error)

Types

type AuthConverter

type AuthConverter struct {
	// contains filtered or unexported fields
}

Main struct

func (*AuthConverter) ServeHTTP

func (e *AuthConverter) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Entry point from Traefik

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config structure

func CreateConfig

func CreateConfig() *Config

type TokenSource

type TokenSource string

Jump to

Keyboard shortcuts

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