authkitchi

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAPI

func RegisterAPI(r chi.Router, svc *authhttp.Service, options ...APIOption)

func RegisterJWKS

func RegisterJWKS(r chi.Router, svc *authhttp.Service)

func RegisterOIDC

func RegisterOIDC(r chi.Router, svc *authhttp.Service, mountPath string)

func RegisterRoutes

func RegisterRoutes(r chi.Router, mountPath string, routes []authhttp.RouteSpec, wrap func(authhttp.RouteSpec, http.Handler) http.Handler)

Types

type APIOption

type APIOption func(*APIOptions)

func WithGroups added in v0.72.0

func WithGroups(groups ...authhttp.RouteGroup) APIOption

func WithRouteWrapper

func WithRouteWrapper(wrap func(authhttp.RouteSpec, http.Handler) http.Handler) APIOption

func WithRoutes

func WithRoutes(routes []authhttp.RouteSpec) APIOption

type APIOptions

type APIOptions struct {
	Routes []authhttp.RouteSpec
	Groups []authhttp.RouteGroup
	Wrap   func(authhttp.RouteSpec, http.Handler) http.Handler
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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