noncom
noncom

Reputation: 4992

Play 2.0 - authorization

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

Answers (2)

wkl
wkl

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

lowercase
lowercase

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

Related Questions