Deadbolt for Java

The Deadbolt for Java Developer Hub

Welcome to the Deadbolt for Java developer hub. You'll find comprehensive guides and documentation to help you start working with Deadbolt for Java 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 auth0.com/overview

Get Started    
Ask A Question

Questions

error when using @Restrict({@Group("some name")})

Posted by Amit Tiwari about a month ago

I have added the dependencies for deadbolt. when i run localhost:9000 it works fine, but when i use @Restrict({@Group("some name")}) for any api and call that api i get following error

[CompletionException: com.google.inject.ConfigurationException: Guice configuration errors:

1) No implementation for be.objectify.deadbolt.java.cache.PatternCache was bound.
while locating be.objectify.deadbolt.java.cache.PatternCache
for the 3rd parameter of be.objectify.deadbolt.java.ConstraintLogic.<init>(ConstraintLogic.java:58)
while locating be.objectify.deadbolt.java.ConstraintLogic
for the 4th parameter of be.objectify.deadbolt.java.actions.RestrictAction.<init>(RestrictAction.java:48)
while locating be.objectify.deadbolt.java.actions.RestrictAction

2) No implementation for be.objectify.deadbolt.java.cache.SubjectCache was bound.
while locating be.objectify.deadbolt.java.cache.SubjectCache
for the 2nd parameter of be.objectify.deadbolt.java.ConstraintLogic.<init>(ConstraintLogic.java:58)
while locating be.objectify.deadbolt.java.ConstraintLogic
for the 4th parameter of be.objectify.deadbolt.java.actions.RestrictAction.<init>(RestrictAction.java:48)
while locating be.objectify.deadbolt.java.actions.RestrictAction

2 errors]

Loading comments...