middlewares

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZitadelAuth

type ZitadelAuth struct {
	Domain string // Zitadel instance domain
	Key    string // path to key.json
	AuthZ  *authorization.Authorizer[*oauth.IntrospectionContext]
}

func NewZitadelAuth

func NewZitadelAuth(conf config.Config) ZitadelAuth

func (*ZitadelAuth) AllowAnyOfRoles

func (za *ZitadelAuth) AllowAnyOfRoles(next http.Handler, roles ...string) http.Handler

func (*ZitadelAuth) AllowAuthenticated

func (za *ZitadelAuth) AllowAuthenticated(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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