AuthMiddleware function

Creates authorization middleware object

Creates authorization middleware object

Adds various authorizations to Application .

See Also

Middleware Application

Other AuthBackend: AuthBackend, AuthBackendBasic, AuthBackendBearer

Super class

RestRserve::Middleware -> AuthMiddleware

Methods

Public methods

Method new()

Creeates AuthMiddleware object.

Usage

AuthMiddleware$new(
  auth_backend,
  routes,
  match = "exact",
  id = "AuthMiddleware"
)

Arguments

  • auth_backend: Authentication backend.

  • routes: Routes paths to protect.

  • match: How routes will be matched: "exact" or "partial" (as prefix).

  • id: Middleware id.

Method clone()

The objects of this class are cloneable with this method.

Usage

AuthMiddleware$clone(deep = FALSE)

Arguments

  • deep: Whether to make a deep clone.