-
Notifications
You must be signed in to change notification settings - Fork 173
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
Add support for directly querying a node to see if it has passed validation #389
Conversation
Codecov Report
@@ Coverage Diff @@
## master #389 +/- ##
==========================================
+ Coverage 74.03% 74.24% +0.20%
==========================================
Files 9 9
Lines 882 889 +7
Branches 233 236 +3
==========================================
+ Hits 653 660 +7
+ Misses 136 135 -1
- Partials 93 94 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@LoneRifle If you like this approach, or think a feature like this has merit, I'll add some tests. |
My dev tooling is not within reach currently; will be a few days before I can get round to looking! |
@LoneRifle , I'm eager to hear what you think. I'd like to get this landed and released so that I can use it in the pending release of |
4b75039
to
b46439b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for taking so long!
lgtm, but how is this going to be used? Should we update the README to explain the new feature?
Yes, I'd update the README with this new process. I'll actually write a test that shows the old way working to validate and the new way working to validate. Now that you're OK with the general direction, I'll start to move forward on the README and tests. |
Conflicts: src/signed-xml.ts
a473cb4
to
0ff0aaa
Compare
I've finished with this code and am breaking it into smaller pieces to land as functional commits and to make review easier. |
@LoneRifle Hopefully this gives a clearer idea of how this would be used. Please have a look and approve this again if you agree with this methodology. I'm 100% read to land this unless you have feedback. After this, I'll make a PR for pulling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Previously, the API for checking if a reference was valid was very complex. This adds support for allow for a single method call on the container that represents the reference to determine if it passed validation. The idea is that this can clean up some code as found at
node-saml
:Which code follows the recommendation in the README:
Since we already know about the
id
internally, this shouldn't have to be re-implemented by a consumer.