-
Notifications
You must be signed in to change notification settings - Fork 475
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
Node saml separation #574
Node saml separation #574
Conversation
move test files into passport-saml and node-saml folders
Thanks for this work @zoellner ! |
@zoellner I see that you asked for my review, but there are still unchecked items. Is all the code done and ready for review and just the docs are left? I don't want to review if there are still churn in the code-base. |
yes, the code related to the split is done from my end. |
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.
Looks pretty good. I've made just a few minor suggestions. Ultimately I see this as a good first step and that we'll need more changes going forward. Do we still think we can get this all disentangled by a 3.0 release? If not, no worries, just trying to step my expectations and budget code review time :)
@zoellner What do you think of the changes I've made to your branch? Do they look acceptable and appropriate to you? If so, I think we can get this landed. |
looks good to me |
@kriss1897 the separation isn't completely. We really want to factor all the SAML-specific code out to its own project and use it as an import to |
@cjbarth Do we have any specific things outlined? I can get started on this separation and testing. |
It seems that we need to update and split the documentation as a next (final?) step before we move all this to another package. We'll probably only remove code from |
Agree with Chris. The documentation split would be the next step. Then establishing a separate package.json in the node-saml folder. |
I was planning on forking Thoughts? |
sounds good. let me know when that happens and we can manage to transfer the |
Okay. I saw that we have already created the node-saml repo. So I guess further work regarding this would be done on that repo. |
I can see that the only documentation that we have is in the README and a small part in docs dir. |
I hope to release v3 soon and then I'll fork Documentation work will need to be done in both repos because we need to make sure that there is nothing in |
Now that both 3.0.0 is released and node-saml is synced. What's next? |
Description
I’ve separated node-saml form passport-saml in src and tests. passport-saml imports from node-saml but not the other way round. That way node-saml can eventually be published separately.
For now I’ve left everything in the same repo. That way the code changes can be reviewed more easily. I’ve made more smaller commits instead of one large one to help with that as well.
This is still a draft PR.
Remaining is to remove all references to the express requests from saml.ts as those are passport related and not saml related.
It is only used in very few places:
I think these references can be removed with little effort but it does require changes to the method signatures in a few places. I think we should be able to contain all changes in passport-saml such that there are not changes required to the public API for passport-saml but would like another set of eyes on the branch before I continue down that path.
Todo list: