Filters, in general, are 'relatively simple'. Take a look at 
https://github.com/apereo/java-cas-client

Ray

On Fri, 2018-08-10 at 11:12 -0700, Kevin Liu wrote:
How hard would it be to modify the filters to include relative redirect paths?

On Tuesday, July 24, 2018 at 11:33:08 AM UTC-5, rbon wrote:
Kevin,

You can set environment variables on the command line (-Dvar=blah) and in 
tomcat/bin/setenv.sh.


Ray

On Mon, 2018-07-23 at 15:54 -0700, Kevin Liu wrote:
Ray,

Can cas.properties pick up env variables? That could work in that case.

Kevin

On Monday, July 23, 2018 at 3:52:41 PM UTC-5, rbon wrote:
Kevin,

Could the deployment process create a properties file with a value set for 
dnsname?
In properties file:
cas.server.url={dnsname}/cas

In application context or where ever the filter is defined:

    <bean name="authenticationFilter"
          class="org.jasig.cas.client.authentication.AuthenticationFilter">
        <property name="casServerLoginUrl" value="${cas.server.url}/login" />
        <property name="serverName" value="{servicehost}" />
    </bean>

Ray

On Mon, 2018-07-23 at 12:56 -0700, Kevin Liu wrote:
Hello Ray,

No it's like this. I currently have cas deployed within a container sitting 
behind a reverse proxy. When users use a webapp without authentication, they 
will get redirect to dnsname.com/cas<http://dnsname.com/cas> endpoint on the 
proxy which will then send them to cas. The problem is the 
dnsname.com<http://dnsname.com> will be dynamic based on the deployment 
environment. So I was hoping to have a cas filter where it'll just append /cas 
to the incoming request dnsname.

On Monday, July 23, 2018 at 2:48:50 PM UTC-5, rbon wrote:
Kevin,

Are you trying to run two instances of CAS on the same machine/tomcat?
That is, why do you want to change the URL from /cas to /cas1?

Ray

On Mon, 2018-07-23 at 12:23 -0700, Kevin Liu wrote:
Is it possible for the cas filter to redirect with a relative path to the entry 
point? For example if I hit cas1.com<http://cas1.com> and set my redirect to 
/cas1 it would redirect to cas1.com/cas1<http://cas1.com/cas1> instead of 
localhost/cas1.

--
Ray Bon
Programmer analyst
Development Services, University Systems
2507218831 | CLE 019 | rb...@uvic.ca


--
Ray Bon
Programmer analyst
Development Services, University Systems
2507218831 | CLE 019 | rb...@uvic.ca


--
Ray Bon
Programmer analyst
Development Services, University Systems
2507218831 | CLE 019 | rb...@uvic.ca<javascript:>


--
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/1533925399.2842.76.camel%40uvic.ca.

Reply via email to