Help us shape the future of Go! Take the 2026 Go Developer Survey

authkitchi

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 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