The $destination will be properly parsed during the SAML return from TargetResource to RelayState.

Created on 9 August 2024, 6 months ago

Problem/Motivation

The $destination will be properly parsed during the SAML return from TargetResource to RelayState.

Steps to reproduce

Try to set a destination url for redirection after logging in.

Proposed resolution

Modify the SamlService to accommodate for setting the TargetResource properly, by parsing the url from singleSignOnService.

πŸ› Bug report
Status

Active

Version

3.10

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Shefik

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Shefik
  • πŸ‡ΊπŸ‡ΈUnited States Shefik
  • πŸ‡ΊπŸ‡ΈUnited States Shefik

    Updating patch.

  • Status changed to Postponed: needs info 28 days ago
  • πŸ‡³πŸ‡±Netherlands roderik Amsterdam,NL / Budapest,HU

    Can you tell me more exactly what your situation is and what you are trying to achieve?

    From just reading the patch, it looks like

    • in Drupal, you have a Single Sign-on Service configured, that contains a TargetResource query string, e.g. https://example.com/path-to-idp?TargetResource=SOME-URL
    • Your code makes sure the TargetResource has a trailing slash, i.e. https://example.com/path-to-idp?TargetResource=SOME-URL/

    And that's all it does?

    In that case, why don't you configure the Single Sign-on Service URL to already have that trailing URL?

  • πŸ‡³πŸ‡±Netherlands roderik Amsterdam,NL / Budapest,HU
Production build 0.71.5 2024