Skip to content

Allow metadata signing with SP key specified as config value, not file#69

Merged
pitbulk merged 1 commit intoSAML-Toolkits:masterfrom
open-craft:edx4-metadata-key-fix
Jun 24, 2015
Merged

Allow metadata signing with SP key specified as config value, not file#69
pitbulk merged 1 commit intoSAML-Toolkits:masterfrom
open-craft:edx4-metadata-key-fix

Conversation

@bradenmacdonald
Copy link
Copy Markdown
Contributor

This is a simple fix: If python-saml is configured to sign metadata using the same key that it uses as an SP, it will only work if the key was present as a file on disk. If the SP key is specified as a string value directly in settings, the metadata signing gives an error. This fix makes it work either way.


This is a contribution from edX, developed by OpenCraft as part of bringing integrated SAML support to the edX platform, via a new python-social-auth SAML backend.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.12%) to 97.78% when pulling 3a67869 on open-craft:edx4-metadata-key-fix into c44971e on onelogin:master.

@pitbulk pitbulk self-assigned this May 8, 2015
@pitbulk
Copy link
Copy Markdown
Contributor

pitbulk commented May 8, 2015

Thanks, will review and test it and merge soon.

@bradenmacdonald
Copy link
Copy Markdown
Contributor Author

@pitbulk Do you think you'll be able to review this and the other open PRs soon? Please let me know if there's any additional info or examples of use that I could provide.

pitbulk added a commit that referenced this pull request Jun 24, 2015
Allow metadata signing with SP key specified as config value, not file
@pitbulk pitbulk merged commit 2749128 into SAML-Toolkits:master Jun 24, 2015
@pitbulk
Copy link
Copy Markdown
Contributor

pitbulk commented Jun 25, 2015

New version 2.1.3 released (also available on pypi )

@bradenmacdonald
Copy link
Copy Markdown
Contributor Author

Awesome, thanks! I have opened PRs for python-social-auth and edx-platform to use the new release rather than my fork.

@bradenmacdonald bradenmacdonald deleted the edx4-metadata-key-fix branch June 25, 2015 01:40
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.

3 participants