I am using Deadbolt2
with play-framework 2.3.x
. When I am trying to access the controller with declare deadbolt Patterns
using regular expressions. I am getting Not-found
error. According to this sample, it is possible to use regular expressions with Pattern
in our application. But when I declare a regular expression, I am not able to use it. My code looks like this:
def pattern_one = Pattern("CH{4,}", PatternType.REGEX, new MyDeadboltHandler) {} // NOT ACCESSED
def pattern_one = Pattern("CH*", PatternType.REGEX, new MyDeadboltHandler) { // NOT ACCESSED
def pattern_one = Pattern("CHANNEL", PatternType.REGEX, new MyDeadboltHandler) { // ACCESSED SUCCESSFULLY