Learn R Programming

RestRserve (version 0.2.0.2)

AuthMiddleware: Creates authorization middleware object

Description

Adds various authorizations to Application. This class inherits Middleware.

Arguments

Format

R6::R6Class object.

Construction

AuthMiddleware$new(auth_backend, routes, match = "exact", id = "AuthMiddleware")
  • auth_backend :: AuthBackend Authentication backend.

  • routes :: character() Routes paths to protect.

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

  • id :: character(1) Middleware id

See Also

Middleware Application

Other AuthBackend: AuthBackendBasic, AuthBackendBearer, AuthBackend