The quick way to implement this would be to utilize Registered services custom
and set which authentication source to use for each defined service. Then
you’ll have access to this data at runtime via the ServicesManager, etc.
> On Oct 13, 2016, at 1:25 PM, Yan Zhou <yanand...@gmail.com> wrote:
> We have several data source of user credentials, they come from different
> applications and we are unable to merge them into one single source.
> Instead of configuring CAS to go through each authentication provider until
> one returns SUCCESS, I wish to select the right provider based on the
> application user is trying to login, i.e., the theme of login page. Another
> way to explain this is that my login page has a "domain" field in addition to
> username and password field.
> This is not the best idea, but I cannot think of anything better.
> I can extend AbstractUsernamePasswordAuthenticationHandler and implement
> authenticateUsernamePasswordInternal() to carry out the authentication.
> 1) How can I pass in an additional value (such as the CSS theme of login
> page) into this method? it only supports user name and password. I need an
> additional value to indicate which authentication provider I should use.
> 2) any alternative solution?
> CAS gitter chatroom: https://gitter.im/apereo/cas
> CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
> CAS documentation website: https://apereo.github.io/cas
> CAS project website: https://github.com/apereo/cas
> 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 cas-user+unsubscr...@apereo.org
> To post to this group, send email to email@example.com
> Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/
> To view this discussion on the web visit
> For more options, visit https://groups.google.com/a/apereo.org/d/optout
CAS gitter chatroom: https://gitter.im/apereo/cas
CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
CAS documentation website: https://apereo.github.io/cas
CAS project website: https://github.com/apereo/cas
You received this message because you are subscribed to the Google Groups "CAS
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit
For more options, visit https://groups.google.com/a/apereo.org/d/optout.