I had the same problem on some of my other site.  The problem is that
checking to see if a user is logged into CAS automatically causes a
redirection that prevents google and other search engines from indexing a
site (which is really bad if it is a public site).

My thoughts on this is that a new guest method needs to be created in the
CAS clients that check the browser's user agent.  If the user agent is of a
known browser type (IE, Firefox, Chrome, Safari, Webkit, etc) then allow the
redirection to take place and check to see if the user is logged in to CAS.
 If the user agent is anything else (Googlebot, Bing, etc) then do not check
to see if the user is logged in.

-Matt B.

On Mon, Aug 9, 2010 at 10:13 AM, Earl Fogel <earl.fo...@usask.ca> wrote:

> Hi Prasanna,
>
> We ran into this with our wikis.  The solution I came up with was to just
> use CAS to protect the wiki login page.  So, anyone going directly to
> wiki.usask.ca sees the guest view; to login they need to press the login
> button which redirects them to CAS.  When we really want users to
> login, we code the links as, e.g.
> https://cas.usask.ca/cas/login?service=http://wiki.usask.ca.
>
> Earl Fogel
> Information Technology Services
> University of Saskatchewan
> --
> On Tue, 13 Jul 2010, prasanna h wrote:
>
> >Hi All,
> >We use CAS as a gateway where each request is intercepted and redirected
> to CAS to check for a ticket. I noticed
> >that the redirect to CAS happens for users as well as bots. Has anyone
> using CAS encountered this and if yes, can
> >you let  me know the solution?
> >
> >Right now, I'm planning to check the user-agent against a list of common
> bots to determine whether to redirect to
> >CAS.
> >
> >Looking forward to your thoughts as well.
> >
> >Prasanna
> >
> >--
> >You are currently subscribed to cas-dev@lists.jasig.org as:
> earl.fo...@usask.ca
> >To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
> >
> >
>
> --
> You are currently subscribed to cas-dev@lists.jasig.org as:
> m...@msbrooks.com
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev

-- 
You are currently subscribed to cas-dev@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to