Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin: SSP SP-metadata doesn't contain 'entityid' key #1805

Open
tvdijen opened this issue May 9, 2023 · 2 comments
Open

admin: SSP SP-metadata doesn't contain 'entityid' key #1805

tvdijen opened this issue May 9, 2023 · 2 comments

Comments

@tvdijen
Copy link
Member

tvdijen commented May 9, 2023

Describe the bug
The SP-metadata (SSP-array style) does not contain the 'entityid' key.
This is problematic, because some code depends on it (i.e. https://github.com/simplesamlphp/simplesamlphp/blob/master/src/SimpleSAML/Metadata/MetaDataStorageHandler.php#L377), effectively breaking HTTP-Artifact binding and possibly more.

To Reproduce
Steps to reproduce the behavior:

  1. Set up SSP as a service provider
  2. Go to admin Federation page and pull down the SSP metadata
  3. See no 'entityid' key

Expected behavior
An 'entityid' key

Additional context

  • The hosted IDP metadata does have this key and is not affected.
@thijskh
Copy link
Member

thijskh commented May 23, 2023

The question this raises with me is why it needs the extra key in the first place. Since the entityID is already in the array index, so why does it need to be duplicated.

@tvdijen
Copy link
Member Author

tvdijen commented May 23, 2023

Agreed, we should be able to get rid of the key everywhere and just use the array index.

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

No branches or pull requests

2 participants