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

IdPMetadata URL containing another URL #830

Open
jwalits opened this issue Aug 14, 2024 · 0 comments
Open

IdPMetadata URL containing another URL #830

jwalits opened this issue Aug 14, 2024 · 0 comments

Comments

@jwalits
Copy link
Contributor

jwalits commented Aug 14, 2024

There is a case which breaks the plugin, when trying to add a new metadata url which contains a full url...

E.g. https://sso.myidpdomain.com/identity/metadata.xml?aparam=https%3A%2F%2Fsomeanotherdomain.com%2F%2Fsp%2Fmetadata.php

When trying to add the above example url as a new metadata, the following line, https://github.com/catalyst/moodle-auth_saml2/blob/MOODLE_39_STABLE/classes/idp_parser.php#L108 will further split the url into 2 parts and treating the second part as the "IdPIcon" stripping out the parameter from the metadata url.

This can potentially fail the next part where the code tries to retrieve the raw metadata.
Throwing an error at this point https://github.com/catalyst/moodle-auth_saml2/blob/MOODLE_39_STABLE/classes/admin/setting_idpmetadata.php#L223

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

1 participant