middleware

package
v1.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authentication

func Authentication(ctx *gin.Context)

Authentication middleware authenticates the user either using the basic auth or the bearer token (OIDC)

func EpinioVersion

func EpinioVersion(ctx *gin.Context)

func GitconfigAuthorization

func GitconfigAuthorization(c *gin.Context)

func InitContext

func InitContext(logger logr.Logger) gin.HandlerFunc

InitContext initialize the Request Context injecting the logger and the requestID

func NamespaceAuthorization

func NamespaceAuthorization(c *gin.Context)

func NamespaceExists

func NamespaceExists(c *gin.Context)

NamespaceExists is a gin middleware used to check if a namespaced route is valid. It checks the validity of the requested namespace, returning a 404 if it doesn't exists

func RoleAuthorization

func RoleAuthorization(c *gin.Context)

RoleAuthorization middleware is used to check if the user is allowed for the incoming request checking the verb, path and eventually the params of it.

func TokenAuth

func TokenAuth(ctx *gin.Context)

TokenAuth middleware is used to authenticate a user from a 'authtoken' It's used when trying to establish a websocket connections for authenticated users.

Types

This section is empty.

Jump to

Keyboard shortcuts

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