The quick way to implement this would be to utilize Registered services custom 
properties: 
https://apereo.github.io/cas/4.1.x/installation/Configuring-Service-Custom-Properties.html
 
<https://apereo.github.io/cas/4.1.x/installation/Configuring-Service-Custom-Properties.html>
 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.

D.

> On Oct 13, 2016, at 1:25 PM, Yan Zhou <yanand...@gmail.com> wrote:
> 
> Hello,
> 
> 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?
> 
> Thanks,
> Yan
> 
> -- 
> CAS gitter chatroom: https://gitter.im/apereo/cas 
> <https://gitter.im/apereo/cas>
> CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html 
> <https://apereo.github.io/cas/Mailing-Lists.html>
> CAS documentation website: https://apereo.github.io/cas 
> <https://apereo.github.io/cas>
> CAS project website: https://github.com/apereo/cas 
> <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 
> <mailto:cas-user+unsubscr...@apereo.org>.
> To post to this group, send email to cas-user@apereo.org 
> <mailto:cas-user@apereo.org>.
> Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/ 
> <https://groups.google.com/a/apereo.org/group/cas-user/>.
> To view this discussion on the web visit 
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/a6dd16c1-ee2e-4bb6-8d46-6f44d1f891ed%40apereo.org
>  
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/a6dd16c1-ee2e-4bb6-8d46-6f44d1f891ed%40apereo.org?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/a/apereo.org/d/optout 
> <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 
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 cas-user@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/8AC01424-CB6B-4224-8532-3D8BABB5F903%40unicon.net.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to