Skip to content

Updates for Net::SAML2 0.17 #3

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

marschap
Copy link

@marschap marschap commented Aug 5, 2012

Hi,

please consider pulling the following changes into Net::SAML2's upstream repo:

  • Sig.pm: improve compatibility with simplesamlphp
    This is a minimal patch against Sig.pm to make Net::SAML2 work with simplesamlphp.
    It is taken from https://rt.cpan.org/Public/Bug/Display.html?id=76260, and has -
    as you suggested - the namespace change left out.
    I can confirm that this version works as the original patch from #76260 did.
  • documentation updates
    A bunch of documentation updates:
    • document required parameters
    • consistently format methods & parameters: one space after ( , one before )
    • document argument lists using pod's =item parameters to follow standard conversions
      instead of having then shown as code blocks
    • ... (some more minor things)
  • IdP.pm: simplify $idp->format() a bit
    Make the 'return' at the end unconditional instead of having it wrapped in an 'else' block.
  • add additional attribute 'key' to Net::SAML2::SP
    Allow to have certificate & key files separate by using two different parameters when
    creating the SP object. The new parameter 'key' points to the filename of the private
    key of the file given in 'cert'.
    This helps with distributions like e.g. Debian that separate certificate & private key files.
  • Make Sig.pm use the Perl core (since Perl 5.10) module Digest::SHA instead of Digest::SHA1

It would be great if they made it into the next version of Net::SAML2

Minimal patch to improve compatibility with simplesamlphp.
simpelsamlphp sends multiple signatures in the response.
This patch only takes the first (outermost) signature into account.

Patch taken from https://rt.cpan.org/Public/Bug/Display.html?id=76260
Author of the original patch (with additional changes): [email protected]
Changes:
* added missing parameters/arguments to method doc
* format argument lists via =item instead of treating them as literal code
  (makes a difference when shown with HTML [as on CPAN])
* surround literal values with C<...>
Make style more consistent with the other methods.
Do not rely on the fact that the file given as the 'cert' parameter
also contains the private key.

Add an additional attribute 'key' to the Net::SAML2::SP object that holds the
filename of the private key for the certificate file given with the parameter
'cert'.

This change allows using the standard certificate & private key files
in lots of unix distributions (e.g. Debian, where certificate files are
in /etc/ssl/certs/ and private key files are in /etc/ssl/private/)
Use Digest::SHA, wich is part of Perl 5.10, instead of Digest::SHA1.
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.

1 participant