I'm currently fighting with Java CAS client and tomcat container authentication.

I started it already:
https://github.com/fbacchella/CasRealm <https://github.com/fbacchella/CasRealm>

Il also added a redirect to remove the ticket= from the CGI parameters after 
the return from the CAS server, it make usage like reload and bookmar much 
easier.

I'm now fighting with the first redirect, when a user is not authenticated.

Say I want to login to http://example.com/service/page 
<http://example.com/service/page>.

But currently it built a redirect URL given to the CAS server as 
http://example.com/service/ <http://example.com/service/>. So the landing page 
is lost.

I'm trying to extends my own code. But the current cas client is very hostile 
to any improvement.

For example, I want to read the casServerLoginUrl property.

But there is no getter, the delegate is private and the setter is final :
https://github.com/Jasig/java-cas-client/blob/master/cas-client-integration-tomcat-v7/src/main/java/org/jasig/cas/client/tomcat/v7/AbstractAuthenticator.java#L116


So there is now way a subclass can read it. And a lot of other things are like 
that, private or final for no real reason. I will end to duplicate a lot of 
code.

I really do not understand why so much protection from any extension.

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer

-- 
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 [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

Reply via email to