Brad Mace
Brad Mace

Reputation: 27886

Easy way to use Secure module (or similar) on all controllers in Play?

I'd like to know if there's a way I can tell Play to use the Secure module for every controller, without having to add With(Secure.class) to all my controllers or making all my controllers extend a single class. Ideas anyone?

Upvotes: 2

Views: 554

Answers (1)

niels
niels

Reputation: 7309

Yes you can intercept every-request with a play-plugin. Just have a look on modules/docviewer. It's very easy to implement. At the moment I'm working on a security-module where everything is forbidden as a default.

Upvotes: 1

Related Questions