AuthMiddleware: Creates authorization middleware object

AuthMiddlewareR Documentation

Creates authorization middleware object

Description

Adds various authorizations to Application.

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.

See Also

Middleware Application

Other AuthBackend: AuthBackend, AuthBackendBasic, AuthBackendBearer


RestRserve documentation built on May 29, 2024, 8:18 a.m.