x: within.website/x/idp/idpmiddleware Index | Files

package idpmiddleware

import "within.website/x/idp/idpmiddleware"

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.


Package Files

doc.go middleware.go

func Protect Uses

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 Uses

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

XeProtect sets defaults for Xe to use.

Package idpmiddleware imports 12 packages (graph) and is imported by 3 packages. Updated 2019-06-07. Refresh now. Tools for package owners.