idpmiddleware

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: CC0-1.0 Imports: 12 Imported by: 0

Documentation

Overview

Package idpmiddleware is a simple HTTP middleware that protects routes using idp(1). This only allows users that the given idp(1) instance is configured. to allow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Protect

func Protect(idpServer, me, selfURL string) func(next http.Handler) http.Handler

Protect protects a given URL behind your given idp(1) server.

func XeProtect

func XeProtect(selfURL string) func(next http.Handler) http.Handler

XeProtect sets defaults for Xe to use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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