authz

package
v0.0.0-...-b31e57c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthMiddleware

func NewAuthMiddleware(ac *AuthChecker) gin.HandlerFunc

Types

type AuthChecker

type AuthChecker struct {
	// contains filtered or unexported fields
}

func NewAuthChecker

func NewAuthChecker(keyFunc jwt.Keyfunc, claims jwt.Claims) *AuthChecker

func NewJWKSAuthChecker

func NewJWKSAuthChecker(claims jwt.Claims, issuers ...string) (*AuthChecker, error)

func NewStaticJWKSChecker

func NewStaticJWKSChecker(claims jwt.Claims, raw json.RawMessage) (*AuthChecker, error)

func (*AuthChecker) CheckAuth

func (ac *AuthChecker) CheckAuth(token string) (*jwt.Token, error)

Jump to

Keyboard shortcuts

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