- Issue created by @alexharries
- 🇬🇧United Kingdom alexharries
Patch attached for reference:
https://www.drupal.org/files/issues/2024-08-29/DD-1794-samlauth--Fix-con... →
- Status changed to Needs review
3 months ago 2:46pm 29 August 2024 - 🇬🇧United Kingdom alexharries
Hmm, there's some magic going on here I wasn't aware of; the sp_name_id_format field is actually used to store custom formats, too; we only populate sp_name_id_format_ for the form.
When saving the NameID format, sp_name_id_format_ isn't saved into config.
Re-rolling my code/a patch to handle this correctly gives the attached.
/A
- 🇬🇧United Kingdom alexharries
One last patch from me; I found that submitForm() in SamlauthSamlConfigureForm.php was overwriting the value of sp_name_id_format; when a custom NameID format is set, setNameId() in src/Form/SamlauthConfigureTrait.php correctly sets it to the custom value, but then this function overwrites the custom value with the asterisk from the drop-down NameID formats selector.
{facepalm.gif}
Patch attached and pushed to the MR.
/A