Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1901 +/- ##
============================================
+ Coverage 47.05% 47.72% +0.67%
- Complexity 4295 4430 +135
============================================
Files 184 184
Lines 13841 14296 +455
============================================
+ Hits 6513 6823 +310
- Misses 7328 7473 +145 🚀 New features to boost your workflow:
|
tvdijen
force-pushed
the
saml2v5_metadata
branch
from
November 20, 2023 22:37
f49e643 to
31fc0f2
Compare
tvdijen
force-pushed
the
saml2v5_metadata
branch
from
November 27, 2023 23:03
31fc0f2 to
98228fb
Compare
tvdijen
force-pushed
the
saml2v5_metadata
branch
4 times, most recently
from
November 27, 2023 23:31
7cd3f83 to
74d478c
Compare
tvdijen
force-pushed
the
master
branch
3 times, most recently
from
December 1, 2023 14:34
ccb9b02 to
120a100
Compare
tvdijen
force-pushed
the
saml2v5_metadata
branch
from
April 2, 2024 18:53
74d478c to
80b1a9d
Compare
tvdijen
force-pushed
the
saml2v5_metadata
branch
6 times, most recently
from
April 29, 2024 15:50
e0b429d to
ab9195e
Compare
tvdijen
force-pushed
the
master
branch
2 times, most recently
from
May 4, 2024 23:45
6004a77 to
58bf8db
Compare
tvdijen
force-pushed
the
master
branch
2 times, most recently
from
May 27, 2024 12:27
5c9fb2c to
0970efc
Compare
tvdijen
force-pushed
the
master
branch
2 times, most recently
from
June 19, 2024 17:03
c27831c to
71e49f4
Compare
The MetadataParser is based on SAMLParser with the API being updated to the newer saml library. This is part of the update effort to move code that was using saml2-legacy to use saml2 instead. Note that this is very much a WIP with only the first test testDiscoveryResponse updated to using the new MetadataParser class. That one test does now complete so it is a good first move toward that whole file using the new API. This is also rough at this stage and will need more polish once all the tests are passing.
The unit test was also expecting an epoch integer here so that got updated to expecting a Z time string.
There is a choice to either use an array of SAMLAnyURIValue for a $SAML20Protocols function replacement and then intersect on that or we can flatten the objects to strings an the normal array_intersect will work ok on the same data types here. I have code that does both things depending on which we are after.
The name of the self::flatten methods are just temporary still. They are there to get the shape of the data into the format that the test suite is expecting. I will do a composer update next to make sure I have not changed anything else locally that needs to be fed back.
Member
Author
|
@monkeyiq I think we should properly test this PR and see if we can get a v2.6 out. Would be a nice step forward. |
Member
Author
|
@monkeyiq Besides the minor fixes, were you able to do some testing with the metadata-endpoints? |
Contributor
|
I think another round of testing would be good. Also maybe kicking it around a bit with an install rather than just phpunit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR aims to partially migrate to the new SAML2 library. First run: metadata generation!
To do:
MetadataBuilderclass.MetadataParserclass as a replacement of the oldSAMLParserclass. This class should be able to parse XML metadata into SimpleSAMLphp's array-format. TheSignerclass should become obsolete.MetadataBuilderclass. This also requires us to add a few missing classes to the ws-security library and . Missing classes are: