Adds various authorizations to Application.

Super class

RestRserve::Middleware -> AuthMiddleware

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.