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

Incorrect id set on messages from XML #152

Closed
timlegge opened this issue Jan 29, 2023 · 0 comments
Closed

Incorrect id set on messages from XML #152

timlegge opened this issue Jan 29, 2023 · 0 comments

Comments

@timlegge
Copy link
Contributor

This automatically sets a ID if one does not exist in the initiation of a message:

However on building a message object from XML it sets the incorrect ID:

my $self = $class->new(

The simplest fix it to add id to any object generated from xml like:

   id             => $xpath->findvalue('//saml:Assertion/@ID'),
timlegge added a commit to timlegge/perl-Net-SAML2 that referenced this issue Jan 29, 2023
timlegge added a commit to timlegge/perl-Net-SAML2 that referenced this issue Jan 31, 2023
timlegge added a commit to timlegge/perl-Net-SAML2 that referenced this issue Jan 31, 2023
timlegge added a commit that referenced this issue Feb 1, 2023
Fixes #152 - Incorrect id set on messages from XML
timlegge added a commit that referenced this issue Feb 3, 2023
  [ Significant Changes since 0.62 ]

  Maintenance release that has a number of fixes for small issues.  This is
  the first release in some time that has been tested for SOAP connections and
  SOAP Artifacts.  The testapp has been updated to fix SOAP and the Shibboleth
  and samltest.id IdPs.

  - Minimum Perl version has been bumped to 5.12
  - Contributors and authors set automatically
  - Add Shibboleth and samltest.id as supported IdPs
  - Allow encryption certificate in SP metadata
  - LogoutRequest was missing NameQualifier and SPNameQualifier needed by some IdPs
  - Fix bug in obtaining Assertion dates and message id and improve id validation
  - Fix multiple SOAP issues including support for multiple certs in metadata
  - New Net::SAML2::Protocol::Artifact to access parts of the ArtifactResponse
  - Allow obtaining assertion substatus and allow assertions without NameID
  - testapp:
    - allow untrusted TLS SOAP connections
    - read key and cert from config.yml
    - fix metadata generation issues and make signing optional
    - only enable logout bindings supported by IdP
    - allow for custom attribute mapping by IdP
    - Support for Shibboleth and samltest.id IdPs

  [ Change Log ]
  - 8d0b962 use Moose is equivalent to use strict
  - faf3ec7 Update for release 0.63
  - 1688e1c Add XsdID as a type for id attribute type checking
  - fc6a199 Get the substatus of a failed assertion
  - 3c9e4fc Create a Artifact to hold the parts of the Artifact
  - 36652dc Fixes #152 - Incorrect id set on messages from XML
  - 33d9985 Allow assertion without a NameID
  - 6a140ca Get the correct dates from the assertions
  - 3d291ff testapp: allow attribute mapping by IdP
  - 60a3592 testapp: only enable supported IdP logout bindings
  - cfc5351 Add Shibboleth and samltest.id as supported IdPs
  - c81e384 Fix LogoutRequest's missing NameQualifier and SPNameQualifier for samletest.id
  - cf8991a remove eol spaces
  - ade3fed testapp: signed metadat messes with testing - make it an option
  - 571f7a9 testapp Fix issue in metadata generation missing fully qualified URI
  - 01424dd testapp: key and cert should be read from config and missed https options
  - 787bd1f Allow encryption key to be specified in the metadata.xml
  - f6740e4 testapp: allow SOAP connections to untrusted SSL servers
  - eb48fa8 SOAP Some IdPs have issues with newlines in SOAP-ENV
  - 83e30e1 SOAP binding should support multiple certs in the IdP Metadata
            Use Try::Tiny to handle exceptions
  - ef2472d Install Sub::Name without running tests
  - dffc8c8 Test::Deep requires perl 5.012 and newer
  - e213bae New Year advance Copyright
  - 9f8b287 Set sane default values for testing testapp
  - bf27ae9 Bump version to .63
  - b782aa7 Set authors and contributors
  - 013a0c6 Update contributors and reorder alphabetically
  - d268c0f Add missing Credit for Gianni in 0.62
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