I wanted to alter the path for the 'samlauth.saml_controller_acs' controller.

To make this work however I had to turn off 'Use Drupal base URL in toolkit library' because this requires the URL to start with /saml

$base_url = $request->getSchemeAndHttpHost() . $request->getBaseUrl() . '/saml';

I think /saml should be removed or configurable.

Comments

tim_dj created an issue. See original summary.

roderik’s picture

Status: Active » Postponed (maintainer needs more info)

I am going to reword this without involving the term 'Use Drupal base URL in toolkit library' setting (because that will disappear and therefore can't be turned off at some point):

Changing the 'samlauth.saml_controller_acs' controller route is not supported yet. There is a recent MR in #3554966: Possibility of altering saml routes to make it configurable.

Please check / test that MR, and if you want to have it merged: change it (to remove the boolean config option and implement the change you suggested above), before testing.

However: this reconfigures all 'samlauth.saml_controller_acs' routes to have the same changed URL prefix. If you have a use case for changing only the ACS URL, please outline that (here or in the other issue) so we can consider that.