-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[SAML] - Incorrect namespace for EntityDescriptor in Microsoft Azure Active Directory SSO metadata #3616
Comments
The code that you linked to is not fixed, it accepts a |
Ok that's the
So the namespace is still in the xpath selector whether |
You are right -- I overlooked the |
Related: spring-projects/spring-security#11283 I am not sure if there is anything that can be done on this end. Perhaps this is best filed as an issue over at https://github.com/SAML-Toolkits/python3-saml/ ? |
The OneLogin_Saml2_IdPMetadataParser.parse() that this package uses to identify the nodes in the xml has a fixed xpath selector
//md:EntityDescriptor
The XML that comes back from the metadata endpoint at Azure Active Directory (now known as Entra ID) is not namespaced with 'md':
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" ID="xxx" entityID="https://sts.windows.net/xxx/">
mentioned hereSo it returns nothing, preventing anything meaningful from happening.
I could handpick the values and declare them in settings.py but having any changes from their side automatically propagate to our implementation is more desirable.
The text was updated successfully, but these errors were encountered: