middleware

package
v0.12.7 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 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.Handler) http.Handler

func ApiPermissionManageGroups added in v0.12.0

func ApiPermissionManageGroups(next http.Handler) http.Handler

func ApiPermissionManageRoles added in v0.12.0

func ApiPermissionManageRoles(next http.Handler) http.Handler

func ApiPermissionManageTemplates

func ApiPermissionManageTemplates(next http.Handler) http.Handler

func ApiPermissionManageUsers

func ApiPermissionManageUsers(next http.Handler) http.Handler

func ApiPermissionManageUsersOrSelf

func ApiPermissionManageUsersOrSelf(next http.Handler) http.Handler

func ApiPermissionManageUsersOrSpaces added in v0.12.0

func ApiPermissionManageUsersOrSpaces(next http.Handler) http.Handler

func ApiPermissionManageVariables added in v0.12.0

func ApiPermissionManageVariables(next http.Handler) http.Handler

func ApiPermissionManageVolumes

func ApiPermissionManageVolumes(next http.Handler) http.Handler

func ApiPermissionUseSpaces added in v0.12.2

func ApiPermissionUseSpaces(next http.Handler) http.Handler

func ApiPermissionUseTunnels added in v0.12.7

func ApiPermissionUseTunnels(next http.Handler) http.Handler

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.Handler) http.Handler

func WebAuth

func WebAuth(next http.Handler) http.Handler

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