Deadbolt for Scala

The Deadbolt for Scala Developer Hub

Welcome to the Deadbolt for Scala developer hub. You'll find comprehensive guides and documentation to help you start working with Deadbolt for Scala as quickly as possible, as well as support if you get stuck. Let's jump right in!

This project is supported by Auth0.

If you want to easily add secure authentication and authorization to your Java or Scala projects, feel free to check out Auth0's Java SDK, Scala examples and free plan at

Get Started    

v2.5.0 released

Deadbolt 2.5.0 is now available - you can add it as a dependency using "be.objectify" %% "deadbolt-scala" % "2.5.0".


`DynamicResourceHandler#checkPermission` now has a `meta` parameter to provide additional information for custom checks.
The `meta` parameter of both `DynamicResourceHandler#checkPermission` and `DynamicResourceHandler#isAllowed` is now an `Option[Any]`.
The package object of `be.objectify.deadbolt.scala` contains utilities for defining `Restrict` relationships.
Arbitrarily complex composite constraints can be defined - see [Composite constraints](
In replace of an implicit request, actions now receive an `AuthenticatedRequest` containing an `Option[Subject]`.
All constraint logic has been centralized, ensuring consistent behavior across controller constraints, template constraints and composite constraints.