You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CAS Community
Hi all,
Does anybody know how to sanitize the username? We are able to send any sequence of characters for the username, but we would like to limit the allowed set of characters.
regards,
Rafiek
Andy Ng
unread,
Jan 20, 2021, 9:08:17 PM1/20/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CAS Community, rafiek.moh...@gmail.com
Hi Rafiek,
I can think of 3 methods of implementing your requirement:
It is a lot more custom code, but those code usually is backward compatible (I use custom authen starting from 5.1 all the way to 6.2, seems like still working without much edit)
The best thing about this option, is that you will have full control on how you sanitize the username, including using maybe other component (e.g. JDBC) for your santization if you so choose
See if this is useful. Or maybe other option available as well, if so other can add in.
Cheers!
- Andy
Rafiek M
unread,
Jan 21, 2021, 12:30:34 PM1/21/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CAS Community, Andy Ng, Rafiek M
Hi Andy,
Thanks for the help! We went with a custom filter that sanitizes the username value. We might refactor it to a custom Authentication handler in the future, but a filter is seems like a pretty stable and simple solution for now.
kind regards,
Rafiek
Op donderdag 21 januari 2021 om 03:08:17 UTC+1 schreef Andy Ng: