I’d like to a use a Controller provided in a module but the Controller is not secured. I don’t want to edit the source of the module as this will become a maintenance overhead. Does Play offer any kind of solution to this problem?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The brute-force approach to this is to not include the module’s routes (or at least not allow direct access to the controllers you want to secure), and instead allow access to the module only by going through one of your own controllers. Access control can then be applied in your own controller.