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

bugfix: avoid generating an invalid ID attribute in SAML's AuthenRequest element #985

Merged
merged 1 commit into from Jul 10, 2017

Conversation

kkohtaka
Copy link
Contributor

@kkohtaka kkohtaka commented Jul 7, 2017

Our team is going to use Azure AD as an IdP with SAML 2.0 connector. However, when the connector sends an AuthnRequest to Azure AD's endpoint, Azure AD often responds with an error message such as The request is not a valid Saml2 protocol message.

After a brief investigation, I found that the connector often generates an AuthnRequest whose ID attribute starts with a digit though such an ID attribute is forbidden by the XML specification. The ID attribute is originally generated by storage.NewID() and this PR will change the behavior of the function to avoid generating an ID which starts with a digit.

Refs: https://www.w3.org/TR/REC-xml/#sec-attribute-types

@kkohtaka kkohtaka changed the title bugfix: avoid generating an ID attribute in SAML's AuthenRequest element bugfix: avoid generating an invalid ID attribute in SAML's AuthenRequest element Jul 10, 2017
Copy link
Contributor

@ericchiang ericchiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm cc @rithujohn191

@rithujohn191
Copy link
Contributor

Thank you for the change.

@rithujohn191 rithujohn191 merged commit 377d9b4 into dexidp:master Jul 10, 2017
@kkohtaka
Copy link
Contributor Author

Thanks for reviewing and merging. Do you have a specific schedule to release a next version?

kkohtaka pushed a commit to zlabjp/dex that referenced this pull request Jul 19, 2017
bugfix: avoid generating an invalid ID attribute in SAML's AuthenRequest element
@rithujohn191
Copy link
Contributor

@kkohtaka Latest release is available at https://github.com/coreos/dex/releases/tag/v2.5.0

mmrath pushed a commit to mmrath/dex that referenced this pull request Sep 2, 2019
bugfix: avoid generating an invalid ID attribute in SAML's AuthenRequest element
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

Successfully merging this pull request may close these issues.

None yet

4 participants