AuthMiddleware {RestRserve} | R 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
Other AuthBackend:
AuthBackend
,
AuthBackendBasic
,
AuthBackendBearer
[Package RestRserve version 1.2.3 Index]