Reputation: 4992
In previous versions of Play 2.0 there was the Secure Module to do authorization. What is the way to do it in Play 2.0?
Upvotes: 1
Views: 2155
Reputation: 80031
For the authorization portion, you can use Deadbolt 2, which provides authorization features but does not provide authentication features. There is not equivalent to the Secure module in core Play 2.0.
Upvotes: 2
Reputation: 2204
Take a look at ZenTasks sample code https://github.com/playframework/Play20/tree/master/samples/scala/zentasks where Secured
trait is used to provide security features.
It can be found in Application.scala file.
Upvotes: 4