Problem/Motivation

We have a case when we need to change the sp_entity_id value depending on the IDP. I think it will be great if a module has this feature. The #3088092: Multiple IDP Support issue had this feature - https://git.drupalcode.org/issue/samlauth-3088092/-/blob/b30743cce1e1011...

Proposed resolution

Add the feature.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alt.dev created an issue. See original summary.

jfurnas’s picture

Do you mean the Entity ID that you reference in the metadata files? That's currently possible with this module now, although once you set an IDP ID and it's actively being used, it's not recommended that you change it.

If you are editing an IDP, there is an 'Entity ID' field that you can use to edit the entity ID.

alt.dev’s picture

StatusFileSize
new2.51 KB

I added the sp_entity_id field support.

Attaching the patch with the latest code version.

jfurnas’s picture

Thanks for the contribution. I will take a closer look at this.

alt.dev’s picture

@jfurnas, I mean the "An identifier for the SP", it's a separate field from "idp_entity_id" as far as I understand. I already created the MR with the fix. Please review my MR when you have time.

The old implementation of this feature can be found here - https://git.drupalcode.org/issue/samlauth-3088092/-/blob/b30743cce1e1011...

alt.dev’s picture

Status: Active » Needs review
jfurnas’s picture

Status: Needs review » Needs work

Just a slight bit of functionality update on the existing sp field description to help avoid confusion if possible.

loon made their first commit to this issue’s fork.

loon’s picture

StatusFileSize
new4.15 KB

Updated the patch and MR to fix the issue:
TypeError: Cannot assign null to property Drupal\samlauth_multi_idp\Entity\SamlauthIdp::$sp_entity_id of type string in /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityBase.php on line 75 #0 /var/www/html/docroot/core/lib/Drupal/Core/Config/E
ntity/ConfigEntityBase.php(114): Drupal\Core\Entity\EntityBase->__construct()

loon’s picture

StatusFileSize
new5.13 KB

Fixed the above issue but for a new installation