CAS has a concept for principal name transformation which manifests itself 
in form of a "PrincipalNameTransformer" component. There are a few options 
shipped by default, but your case would have to be a custom one. This works 
without the need for a custom handler, but if you have already got one, you 
could just as well do it there and leave the transformers alone.

If you do end up creating a transformer, feel free to submit a patch.

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
> Christian Rohmann
> Sent: Monday, January 11, 2016 7:27 AM
> To: CAS Community <[email protected]>
> Subject: [cas-user] How to filter or restrict username before even 
> attempting
> authentiation
>
> Hello,
>
> a Happy New Year to your all.
>
> I am using a CAS 4.1.x setup and was wondering how you would best restrict 
> the
> allowed format for the username (i.e. "only numbers" or "lower case 
> characters
> only", maybe also a length limit) before bothering any back-ends with 
> obviously
> invalid usernames.
>
>
>
>
> With kind regards
>
>
> Christian
>
> --
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email
> to [email protected].
> Visit this group at 
> https://groups.google.com/a/apereo.org/group/cas-user/.

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

Reply via email to