Perhaps I am not fully understanding your situation. If user goes to test1.domain.com the cas client there will redirect to sso.server.com/cas/login?service=test1.domain.com test2.domain.com cas client will redirect to sso.server.com/cas/login?service=test2.domain.com
CAS will pick the right service and present the correct theme. If necessary you can turn logging for org.apereo to trace (set cas.log.level) to see what is happening. Ray On Fri, 2017-12-08 at 15:07 -0800, snaffy wrote: But I can specify the serverName / service parameter at the application configuration stage and I do it. However, how can cas load different views since it will always be the same? (service parameter). I strive for the following situation: when the user uses the https://test1.domain.com/WebApp address the standard login format will appear (authentication by the database) { "@class" : "org.apereo.cas.services.RegexRegisteredService", "serviceId" : "^https://test1.domain.com/.*", "name" : "JDBC", "id" : 1003, "description" : "Standard authentication method for users", "evaluationOrder" : 51, "requiredHandlers" : [ "java.util.HashSet", [ "QueryAndEncodeDatabaseAuthenticationHandler" ] ], "theme" : "apereo" } while by address https://test2.domain.com/WebApp the button with authentication by SAML protocol will appear { "@class" : "org.apereo.cas.services.RegexRegisteredService", "serviceId" : "^https://test2.domain.com/.*", "name" : "SAML", "id" : 1002, "description" : "SAML services", "evaluationOrder" : 50, "attributeReleasePolicy" : { "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy" }, "theme" : "customsaml" } -- Ray Bon Programmer analyst Development Services, University Systems 2507218831 | CLE 019 | r...@uvic.ca -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- 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 view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/1512783907.1769.94.camel%40uvic.ca.