access

package
v0.0.0-...-b0bf924 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowAuthenticated

func AllowAuthenticated(state *state.State, r *http.Request) response.Response

AllowAuthenticated is an AccessHandler which allows all requests. This function doesn't do anything itself, except return the EmptySyncResponse that allows the request to proceed. However in order to access any API route you must be authenticated, unless the handler's AllowUntrusted property is set to true or you are an admin.

Types

type TrustedRequest

type TrustedRequest struct {
	Trusted bool
}

TrustedRequest holds data pertaining to what level of trust we have for the request.

Jump to

Keyboard shortcuts

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