authorizations

package
v5.0.0-...-1b49765 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HTTPMetaJwtClientApp constant
	HTTPMetaJwtClientApp = "JwtClientApp"
	// HTTPMetaJwtIssuer constant
	HTTPMetaJwtIssuer = "JwtIssuer"
)

Functions

func HttpWrapperJWT

func HttpWrapperJWT(h http.Handler) http.Handler

HttpWrapperJWT captures and verifies a JWT token if it's present in the headers. Warning: it goes through if there is no JWT => the next handlers must verify if a valid user was found or not.

func HttpWrapperLanguage

func HttpWrapperLanguage(h http.Handler) http.Handler

func HttpWrapperPolicy

func HttpWrapperPolicy(h http.Handler) http.Handler

HttpWrapperPolicy applies relevant policy rules and blocks the request if necessary

func IsRestApiPublicMethod

func IsRestApiPublicMethod(r *http.Request) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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