Skip to content

Conversation

@ioigoume
Copy link
Contributor

No description provided.

@ioigoume ioigoume marked this pull request as draft October 13, 2025 15:47
* redirect immediately to the service URL with NO query parameters or fragment.
*/
if ($gateway === true && $serviceUrl !== null && !$this->authSource->isAuthenticated()) {
$cleanServiceUrl = $this->stripQueryParameters($serviceUrl);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't line up with my reading of the spec. I don't think you need to manipulate the service url. The service url is allowed to have query parameters. I think the spec just says "do not add a ticket query parameter" and redirect the user to that serviceUrl.

From https://apereo.github.io/cas/7.3.x/protocol/CAS-Protocol-Specification.html

If the client does not have a single sign-on session with CAS, and a non-interactive authentication cannot be established, CAS MUST redirect the client to the URL specified by the service parameter with no “ticket” parameter appended to the URL.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read it the same way.. Just the ticket-param should be stripped

@ioigoume ioigoume closed this Oct 19, 2025
@ioigoume ioigoume deleted the SSP-2167-gateway_fix branch October 25, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants