[JIRA] (IDP-2028) List of CAS proxies in /proxyValidate call contains service urls instead of pgtUrl

Maxime Besson (Jira) jira at shibboleth.atlassian.net
Fri Oct 21 15:07:51 UTC 2022


Maxime Besson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=632ca15b748d1bfcb85792a9 ) *created* an issue

Identity Provider ( https://shibboleth.atlassian.net/browse/IDP?atlOrigin=eyJpIjoiNDI5ZDlkNGU0Mzg4NGFmYThmMWY4ZDA4Y2NiZDcwNWMiLCJwIjoiaiJ9 ) / Bug ( https://shibboleth.atlassian.net/browse/IDP-2028?atlOrigin=eyJpIjoiNDI5ZDlkNGU0Mzg4NGFmYThmMWY4ZDA4Y2NiZDcwNWMiLCJwIjoiaiJ9 ) IDP-2028 ( https://shibboleth.atlassian.net/browse/IDP-2028?atlOrigin=eyJpIjoiNDI5ZDlkNGU0Mzg4NGFmYThmMWY4ZDA4Y2NiZDcwNWMiLCJwIjoiaiJ9 ) List of CAS proxies in /proxyValidate call contains service urls instead of pgtUrl ( https://shibboleth.atlassian.net/browse/IDP-2028?atlOrigin=eyJpIjoiNDI5ZDlkNGU0Mzg4NGFmYThmMWY4ZDA4Y2NiZDcwNWMiLCJwIjoiaiJ9 )

Issue Type: Bug Affects Versions: 4.2.1 Assignee: Unassigned Components: CAS Created: 21/Oct/22 11:07 AM Priority: Trivial Reporter: Maxime Besson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=632ca15b748d1bfcb85792a9 )

During a migration from Apereo CAS to Shib IDP 4.2.1 I noticed a change of behavior regarding the proxy feature.

When doing a /proxyvalidate call, IDP returns the following:

<?xml version="1.0" encoding="UTF-8"?>
<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
 <cas:authenticationSuccess>
   <cas:user>test</cas:user>
     <cas:proxies>
         <cas:proxy>https://cas.example.com/example_proxy_GET.php</cas:proxy>
     </cas:proxies>
 </cas:authenticationSuccess>
</cas:serviceResponse>

The <cas:proxy> field contains the service URL used when obtaining the PGT

However, this is not in line with CAS Procotol specifications (2.6.2)

https://apereo.github.io/cas/development/protocol/CAS-Protocol-V2-Specification.html#262-response ( https://apereo.github.io/cas/development/protocol/CAS-Protocol-V2-Specification.html#262-response )

V3 of the protocol makes it even clearer in 2.5.4.3

https://apereo.github.io/cas/6.6.x/protocol/CAS-Protocol-Specification.html#254-proxy-callback ( https://apereo.github.io/cas/6.6.x/protocol/CAS-Protocol-Specification.html#254-proxy-callback )

> 
> 
> 
> However, the identifying callback URL provided upon validation in the <proxy>
> block MUST be the same URL that was initially passed to /serviceValidate (or
> /proxyValidate ) as the pgtUrl parameter.
> 
> 

In some CAS libraries, the service and pgtUrl are the same (phpCAS), but not in all applications: the SOGo groupware, for instance, uses a dedicated URL for PGT transmission, in which case, Apereo CAS and Shibboleth IDP have different behaviors.

This can cause issues on applications that do strict checking on <cas:proxy> URLs

( https://shibboleth.atlassian.net/browse/IDP-2028#add-comment?atlOrigin=eyJpIjoiNDI5ZDlkNGU0Mzg4NGFmYThmMWY4ZDA4Y2NiZDcwNWMiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/IDP-2028#add-comment?atlOrigin=eyJpIjoiNDI5ZDlkNGU0Mzg4NGFmYThmMWY4ZDA4Y2NiZDcwNWMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100209- sha1:392b984 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20221021/bdf6ec05/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-b2c37681-a7c5-43ad-80a6-027bed04537b
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20221021/bdf6ec05/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-trivial-c9413c9b-3a94-4cbb-9186-6b0e485bfcf6
Type: image/png
Size: 563 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20221021/bdf6ec05/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-fb4c7971-3e54-4bef-83f2-9b89de31af31
Type: image/png
Size: 425 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20221021/bdf6ec05/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-47fed1ef-2b47-4c59-a5ba-485cf9cc373d
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20221021/bdf6ec05/attachment-0007.png>


More information about the commits mailing list