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

octet string builder #509

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mastermatt
Copy link
Contributor

@mastermatt mastermatt commented Jan 30, 2023

Adds octetStringBuilder to libsaml to DRY up the signature alg code.

The octet string is needed in four places: creating and verifying the signature for the Redirect and SimpleSign bindings. Previously, both creations were done adhoc while both verifications where not done by the samlify at all and instead left to user code. #308 #360
The new util is now used during verification if the request object does not include a octetString key.

A note on the tests: a lot of the tests on master don't pass. Before making my changes, I started by getting the tests green by skipping 13 tests and tweaking a further 4. I then made my changes and was content knowing that my changes hadn't broken any of the tests that passed previously.
The broken tests seem to focus on encryption due to an upgrade of xml-crypto and logout flows due to #501. So I'm not overly concerned, but it is worth noting that someone can't pull this repo and run the tests currently.

The tests were fixed before the latest rebase.

@tngan

fixes #308 fixes #360

Adds `octetStringBuilder` to libsaml to DRY up the signature alg code.

The octet string is needed in four places: creating and verifying the signature for the Redirect and SimpleSign bindings.
Previously, both creations were done adhoc while both verifications where not done by the samlify at all
and instead left to user code. tngan#308 tngan#360
The new util is now used during verification if the request object does not include a `octetString` key.
@mastermatt
Copy link
Contributor Author

@tngan I've rebased onto latest, could you take another look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant