package
1.20.0
Repository: https://github.com/owncloud/ocis.git
Documentation: pkg.go.dev

# Functions

Cors writes required cors headers to all requests.
ExtractAccountUUID provides a middleware to extract the account uuid from the x-access-token header value and write it to the context.
Logger is a middleware to log http requests.
NoCache writes required cache headers to all requests.
OpenIDConnect provides a middleware to check access secured by a static token.
Secure writes required access headers to all requests.
Static is a middleware that serves static assets.
Token provides a middleware to check access secured by a static token.
TraceContext unpacks the request context looking for an existing trace id.
Version writes the current version to the headers.

# Constants

AccountID serves as key for the account uuid in the context.
RoleIDs serves as key for the roles in the context.

# Variables

ErrInvalidToken is returned when the request token is invalid.