middleware

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HasUsers bool
)

Functions

func ApiAuth

func ApiAuth(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionManageGroups added in v0.12.0

func ApiPermissionManageGroups(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionManageRoles added in v0.12.0

func ApiPermissionManageRoles(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionManageTemplates

func ApiPermissionManageTemplates(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionManageUsers

func ApiPermissionManageUsers(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionManageUsersOrSelf

func ApiPermissionManageUsersOrSelf(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionManageUsersOrSpaces added in v0.12.0

func ApiPermissionManageUsersOrSpaces(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionManageVariables added in v0.12.0

func ApiPermissionManageVariables(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionManageVolumes

func ApiPermissionManageVolumes(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionUseSpaces added in v0.12.2

func ApiPermissionUseSpaces(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionUseTunnels added in v0.12.7

func ApiPermissionUseTunnels(next http.HandlerFunc) http.HandlerFunc

func ApiPermissionViewAuditLogs added in v0.12.9

func ApiPermissionViewAuditLogs(next http.HandlerFunc) http.HandlerFunc

func DeleteSessionCookie

func DeleteSessionCookie(w http.ResponseWriter)

func GetBearerToken added in v0.9.0

func GetBearerToken(w http.ResponseWriter, r *http.Request) string

func GetSessionFromCookie

func GetSessionFromCookie(r *http.Request) *model.Session

func Initialize

func Initialize()

func LeafServerAuth added in v0.10.0

func LeafServerAuth(next http.HandlerFunc) http.HandlerFunc

func WebAuth

func WebAuth(next http.HandlerFunc) http.HandlerFunc

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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