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

Improper xml:lang attribute in SP metadata #811

Open
breakwaterlabs opened this issue Apr 26, 2024 · 0 comments
Open

Improper xml:lang attribute in SP metadata #811

breakwaterlabs opened this issue Apr 26, 2024 · 0 comments

Comments

@breakwaterlabs
Copy link

When using a multipart language (e.g. en_us_wp for Moodle Workplace) this code is embedded in the xml:lang tags in the Moodle SP SAML metadata.

When trying to configure this with ADFS (which does not work out of the box) this is rejected because that is not a valid XML language tag.

As per the SAML metadata specification 2.2.4, these should be a 'standard XML language attribute'. The examples given in the specification in section 2.6 (lines 1086, 1088, 1092, 1137, 1141, 1155) all show the use of an ISO 639 2-character language code such as 'en'.

The spec does not indicate whether it is permissible to use an ISO 639 code concatenated with an ISO 3166 code (e.g. en_US), but 3-part languages appear to be out of spec.

In any event these language codes break compatibility with ADFS, requiring either the language to be switched to 'en' for initial SP metadata import, or the metadata to be manually downloaded and edited. Otherwise, ADFS will throw an error stating 'invalid attribute lang=en_us_wp' or similar.

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