package rbac
Type Members
-
trait
SecureController[RequestType, UserType <: User] extends AnyRef
Provides utility methods for managing authentication and authorization in REST controllers.
Provides utility methods for managing authentication and authorization in REST controllers.
- RequestType
Type of request handled by controller
- UserType
Subtype of User
class MyScalatraServlet extends ScalatraServlet with SecureController[ HttpServletRequest ]
, class SecureAbstractController @Inject() ( cc: ControllerComponents ) extends AbstractController( cc ) with SecureController[ Request[ AnyContent ] ]
Examples: