| AuthMiddleware | R Documentation |
Adds various authorizations to Application.
RestRserve::Middleware -> AuthMiddleware
new()Creeates AuthMiddleware object.
AuthMiddleware$new( auth_backend, routes, match = "exact", id = "AuthMiddleware" )
auth_backendAuthentication backend.
routesRoutes paths to protect.
matchHow routes will be matched: "exact" or "partial" (as prefix).
idMiddleware id.
clone()The objects of this class are cloneable with this method.
AuthMiddleware$clone(deep = FALSE)
deepWhether to make a deep clone.
Middleware Application
Other AuthBackend:
AuthBackend,
AuthBackendBasic,
AuthBackendBearer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.