Creates authorization middleware object
Adds various authorizations to Application .
Middleware Application
Other AuthBackend: AuthBackend
, AuthBackendBasic
, AuthBackendBearer
RestRserve::Middleware
-> AuthMiddleware
new()
Creeates AuthMiddleware object.
AuthMiddleware$new(
auth_backend,
routes,
match = "exact",
id = "AuthMiddleware"
)
auth_backend
: Authentication backend.
routes
: Routes paths to protect.
match
: How routes will be matched: "exact"
or "partial"
(as prefix).
id
: Middleware id.
clone()
The objects of this class are cloneable with this method.
AuthMiddleware$clone(deep = FALSE)
deep
: Whether to make a deep clone.
Useful links