Quick Java client filter mapping question.

10 views
Skip to first unread message

Bryan Wooten

unread,
Oct 4, 2018, 5:12:06 PM10/4/18
to cas-...@apereo.org
I believe filter mappings are regex expressions.

So with the proper regex I can protect:

/secure/* but exclude a url like:

/secure/notsensitve/*

Thanks,
Bryan

University of Utah

Andy Ng

unread,
Oct 4, 2018, 10:41:47 PM10/4/18
to CAS Community
Hi Bryan,

I did not used "Java client filter" regex mapping before, so not sure of the language of the regex needed. 

Anyway, I think there is a stackoverflow page that talk about what you need, 

So maybe something like this would worked:
^/secure/(?!notsensitive/).*/?$

I tried it in "http://jsregex.com/" and it work as intended.

Cheers!
-Andy


Reply all
Reply to author
Forward
0 new messages