ldap

package module
v0.0.0-...-10b9db4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

README

Krakend LDAP Integration

a simple middleware for krakend to Authenticate & Authorize users from FreeIPA LDAP.

Documentation

Overview

Package krakend-ldap provides a auth methods using go-ldap lib. Sample backend extra config

...
"extra_config": {
	...
	"github.com/p3ym4n/krakend-ldap": {
		"type":        "auth", // or "token"
	},
	...
},
...

Index

Constants

View Source
const (
	AUTH  = "auth"
	TOKEN = "token"
)
View Source
const Namespace = "github.com/p3ym4n/krakend-ldap"

Variables

View Source
var ZeroCfg = Config{
	Type: TOKEN,
}

ZeroCfg is the zero value for the Config struct

Functions

func ProxyFactory

func ProxyFactory(pf proxy.Factory) proxy.FactoryFunc

ProxyFactory creates an proxy factory over the injected one adding a JSON Schema validator middleware to the pipe when required

Types

type Config

type Config struct {
	Type string
}

Jump to

Keyboard shortcuts

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