package
0.3.2
Repository: https://github.com/ooni/orchestra.git
Documentation: pkg.go.dev

# Functions

AdminAuthorizor is used to protect routes that are allowed only by administrator accounts.
CorsConfig stores the Cross Origin Resource Sharing configuration for orchestra.
DeviceAuthorizor is used to protect routes that are allowed only by authenticated devices.
ExtractClaims help to extract the JWT claims.
InitAuthMiddleware is called to initialise the authentication middleware.
InitDatabaseMiddleware create the middleware that injects the database.
NullAuthorizor is used for routes where authentication is optional and it returns always true.
RunMigrations runs the database migrations.

# Variables

ErrMissingToken when the auth token is missing in the headers, query paramters or cookies.

# Structs

Account is the details of the account.
GinDatabaseMiddleware a database aware middleware.
GinJWTMiddleware provides a Json-Web-Token authentication implementation.
Login form structure.
OrchestraClaims are claims for the JWT token.

# Type aliases

Authorizator structure Callback function that should perform the authorization of the authenticated user.