AuthMiddleware: Creates authorization middleware object

Description Super class Methods See Also

Description

Adds various authorizations to Application.

Super class

RestRserve::Middleware -> AuthMiddleware

Methods

Public methods

Inherited 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.

See Also

Middleware Application

Other AuthBackend: AuthBackendBasic, AuthBackendBearer, AuthBackend


RestRserve documentation built on Jan. 13, 2021, 7:05 p.m.