<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​Just in case anybody runs into the same issue I have. The cas-protocol.xml clearly states that since 3.3.0 the ticket service "serializes ticket data into the opaque section of the ticket ID for service tickets and proxy tickets."</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">This behavior can be reverted back by enabling <alias name="simpleTicketService" alias="shibboleth.CASTicketService" /> instead of <alias name="encodingTicketService" alias="shibboleth.CASTicketService" /></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">My original problem with the Ruby on Rails application was tracked down to the fact that the CAS service validate response includes the <?xml version="1.0" encoding="UTF-8"?> line (system/views/cas/header.vm). Customizing this file (actually a copy in views/cas) to drop that line fixed the problem. I assume that newer Ruby on Rails code and/or associated gems would not have this issue.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Mircea</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>--</div><div>Mircea Baciu, Sr. Unix Systems Administrator<br></div><div>Simmons College, Boston, MA</div></div></div></div>
<br><div class="gmail_quote">On Thu, Apr 20, 2017 at 5:05 PM, Mircea Baciu <span dir="ltr"><<a href="mailto:mircea.baciu@simmons.edu" target="_blank">mircea.baciu@simmons.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">We have an IdP version 3.3.1 working, with CAS enabled. I managed to migrate most of the SPs off a JA-SIG CAS server to Shibboleth IdP with no issues, except for one old Ruby on Rails application. After a successful IdP login, the browser gets back to the SP and displays an 500 error.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Digging into this I found out that the IdP is passing a ticket that is way longer and its format is different than what the CAS server is generating.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Here's a ticket from IdP:</div><div class="gmail_default"><font face="arial, helvetica, sans-serif">ST-AAhzZWNyZXQyMLjnIZ_<wbr>lGXRqhpMw2sKmON-CHB_KixeV_<wbr>Mr35-aB46_<wbr>zutFyEXiVESYYRgTX7JexOSd2MjxVF<wbr>oe0fIwcTqf6bTQUjlHiJudA_<wbr>GRbzXGtpXJzQEtJMtVVlKfPr7QSLP-<wbr>ppxmE8RbMvB9SQuKmXb0bXinRTrpO4<wbr>GM_<wbr>jZkQBAOxARnHSEzN2ATd5qVgkfSHTG<wbr>CTNs-fJJ-<wbr>hzw1zJnURH8IDskoqN0xQkeOE--<wbr>CDOPB5UpoMgeIIRKP9lZaJApg-<wbr>mgANUzI4UnrFgpoUMpQRfpIHKt2wJX<wbr>_dILBBtZqSs5VW7Hlw</font><br></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">The CAS server ticket looks like this: <a href="http://ST-14868-0AvPvOss9kIUvFmCBhDi-login.simmons.edu" target="_blank">ST-14868-<wbr>0AvPvOss9kIUvFmCBhDi-login.<wbr>simmons.edu</a></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">My feeling is that the application's CAS client is not happy to see such a long ticket and that causes the error.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Is there way to control the length and/or format of the ST tickets generated by the IdP?</font></div><div class="gmail_default"><br></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Thanks,</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Mircea</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div><div class="m_1073457895442734777gmail_signature"><div dir="ltr"><div>--</div><div>Mircea Baciu, Sr. Unix Systems Administrator<br></div><div>Simmons College, Boston, MA</div></div></div></div>
</div>
</blockquote></div><br></div>