Is there a way to use the CAS Java Client to use both Gateway and non Gateway calls depending on url pattern. /* to auth and validate using gateway. /secure/* to auth and validate without gateway option and show log in if no TGC available.