CAS AJAX jQuery

Scott Battaglia scott.battaglia at gmail.com
Tue Aug 19 08:14:28 EDT 2008


You want it to redirect based on the file you're trying to load via
JavaScript?  I'm not sure if that works (for all our AJAX stuff, you've
already been authenticated)

-Scott

On Mon, Aug 18, 2008 at 2:20 AM, Andrew Bruno <andrew.bruno at gmail.com>wrote:

> Are there any pointers, links, examples, etc.. for accessing a secure
> "private" resource via AJAX?
>
> <html>
> <head>
> <script type="text/javascript" src="/js/jquery-1.2.3.pack.js"></script>
> </head>
> <body>
>
> <div id="stats"/>
>
> <!-- Get's the stats once logged in, placing them in the div above -->
> <script type="text/javascript">
>    $('#stats').load('private/stats.html');
> </script>
>
> </body>
> </html>
>
> and
>
>    <sec:http entry-point-ref="casProcessingFilterEntryPoint">
>        <sec:intercept-url pattern="/private/**" access="ROLE_USER" />
>        <sec:logout />
>    </sec:http>
>
> It looks like it redirects to CAS login but hangs there indefinitely.
>
> Am I barking up the wrong tree?  Any pointers on how to do this
> differently?
>
> Thanks
> Andrew
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080819/4cf32cc2/attachment.html 


More information about the cas mailing list