Can you clarify your request please, as there are a couple of different answers.
First, is it your CAS server name that changing or is it the service name?
i.e. https://publiccas.my.edu vs https://internalcas.my.edu or is it
http://moodle.my.edu vs http://portal.my.edu
Second, is the difference between servers/services all visual or are you
looking to change the authentication flow based on servername?
Third, If visual can the changes be handled with just CSS and javascript?
-Andrew
On Nov 3, 2011, at 8:11 AM, Francisco González-Blanch wrote:
> Georges, not exactly. I need the login page to be dynamic, to fetch some data
> from the database depending on the subdomain. So it's not just change the css
> but to show different information from the DB depending on the subdomain.
>
>
>
> 2011/11/3 Georges Rossopoulos <[email protected]>
> I believe what you want to do is exactly the “theme” functionality,
> that you can define through the CAS application console.
>
> With each theme, you can define a different CSS that will change the look of
> your various pages,
> especially login.
>
> Is this what you wanted?
>
>
>
> From: Lava Kafle [mailto:[email protected]]
> Sent: jeudi, 3. novembre 2011 12:09
> To: [email protected]
> Subject: Re: [cas-dev] Subdomain support in CAS Client for java
>
>
>
> it might need to be redirected to some url in some table simply when getting
> response but that will be hardcoded in the table though.
> Lava Kafle
>
>
>
>
>
>
> On Thu, Nov 3, 2011 at 4:46 PM, Francisco González-Blanch <[email protected]>
> wrote:
>
> Hi Everyone,
>
>
>
>
>
> I would want to customize the CAS theme depending on the subdomain the client
> is trying to access. For example:
>
>
>
> http://user1.myservice.com has a different cas login page than
> http://user2.myservice.com
>
>
>
> But since my service is a java application and the web.xml is configured
> this way:
>
>
>
> <filter>
>
> <filter-name>CAS Authentication Filter</filter-name>
>
>
> <filter-class>org.jasig.cas.client.authentication.Saml11AuthenticationFilter</filter-class>
>
> <init-param>
>
> <param-name>casServerLoginUrl</param-name>
>
> <param-value>https://cas.myservice.com/cas/login</param-value>
>
> </init-param>
>
> <init-param>
>
> <param-name>serverName</param-name>
>
> <param-value>http://myservice.com/</param-value>
>
> </init-param>
>
> <init-param>
>
> <param-name>renew</param-name>
>
> <param-value>false</param-value>
>
> </init-param>
>
> </filter>
>
>
>
> The target URL received in the login page is http://myservice.com/ instead
> of http://user1.myservice.com.
>
>
>
> Is there any way to set the server name for dynamic subdomains ( something
> like http://*.myservice.com/) and if it is not possible , how do you think is
> the best way to get the original URL in the login page?
>
>
>
> Thanks a lot in advance. Cheers,
>
>
>
>
>
> Francisco
>
>
>
>
>
> --
> Francisco González-Blanch Rodríguez
> Grupo Madiva
> Tlf.: +34 913 00 10 44
> [email protected]
>
> www.madiva.com
>
>
> Perfil en Error! Filename not specified.
>
>
>
> --
> You are currently subscribed to [email protected] as: [email protected]
>
>
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>
>
> --
> You are currently subscribed to [email protected] as: [email protected]
>
>
>
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
> --
> You are currently subscribed to [email protected] as: [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>
>
>
> --
> Francisco González-Blanch Rodríguez
> Grupo Madiva
> Tlf.: +34 913 00 10 44
> [email protected]
> www.madiva.com
>
> Perfil en
>
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-dev