Portlets & CAS

Scott Battaglia scott.battaglia at gmail.com
Thu Sep 20 13:46:27 EDT 2007


Paul,

Can you check the CAS logs.  It should give you an indication of what CAS is
doing.  You may need to turn on DEBUG mode.

-Scott

On 9/20/07, Paul Hunnisett <Paul.Hunnisett at uwe.ac.uk> wrote:
>
>  We've been looking at getting our portlets integrating with CAS using
> proxy tickets.  I followed the process on the wiki (
> http://www.ja-sig.org/wiki/display/PLT/Portlets+using+Proxy+CAS) and was
> using CCasPortletAdaptor successfully against CAS 3.0.  We've upgraded to
> CAS 3.1 and it no longer seems to work.
>
>
>
> The bit of code that now fails is:
>
>
>
> *try* {
>
>       String proxyTicket = ((ICasSecurityContext)
> casContext).getCasServiceToken(targetService);
>
>       userInfo.put(getCasProxyTicketPref(staticData), proxyTicket);
>
>       } *catch* (CasProxyTicketAcquisitionException e) {
>
>             log.error("no proxy ticket passed to the portlet: " + e);
>
> }
>
>
>
> This results in an error:
>
>
>
> org.jasig.portal.security.provider.cas.CasProxyTicketAcquisitionException:
> Could not obtain proxy ticket for service
> [http%3A//onlinedev.uwe.ac.uk/webapps/login%3Fnew_loc%3D%252Fwebapps%252Fph-myUWE-bb_bb60%252Fpages%252Findex.jsp%253FuseCas%253D1]
> using credentials [[edu.yale.its.tp.cas.client.CASReceiptuserName=[tstd72] casValidateUrl=[
> https://paulh.uwe.ac.uk/cas/proxyValidate] proxyCallbackUrl=[
> https://paulh.uwe.ac.uk/uPortal/CasProxyServlet] pgtIou=[
> PGTIOU-2-XfEGhLE7PG4edaUYht2XkavZzMxMcNtqTfK-paulh.uwe.ac.uk]
> casValidateUrl=[https://paulh.uwe.ac.uk/cas/proxyValidate]
> proxyList=[[]]]].
>
>
>
> This suggests to me that it's trying to validate the proxy ticket using
> the user's username (tstd72) instead of the proxy callback URL (
> https://paulh.uwe.ac.uk/uPortal/CasProxyServlet)
>
>
>
> Has anyone else come across this?  I can't understand why this did work
> and now doesn't…
>
>
>
> Cheers
>
>
>
> Paul Hunnisett
>
>
>
> ------------------------------
> This email was independently scanned for viruses by McAfee anti-virus
> software and none were found
>
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>


-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070920/209404f8/attachment.html 


More information about the cas mailing list