As anyone managed to integrate Deadbolt2 with Silhouette/SecureSocial ?
I find Silhouette Authorization a bit basic and Deadbolt2 meets all the requirements.
Thanks
As anyone managed to integrate Deadbolt2 with Silhouette/SecureSocial ?
I find Silhouette Authorization a bit basic and Deadbolt2 meets all the requirements.
Thanks
I've sketched out a rough approach here, but I'll evolve it to a full working example based on the play-silhouette-seed-master activator template when I get time.
Two main steps are required.
Firstly, your
com.mohiva.play.silhouette.api.Identityimplementation also needs to implementbe.objectify.deadbolt.scala.models.Subject.Secondly, borrow some code from
com.mohiva.play.silhouette.api.RequestHandlerBuilderand integrate it into yourDeadboltHandlerimplementation.In your controllers, you can now use Deadbolt constraints instead of the Silhouette authorizations. For example...
can be replaced with