auth0/node-samlp

[Suggestion] - Extract some logic to other node modules

Ninir opened this issue · 0 comments

Ninir commented

Hey auth0 team,

While working on some SAML implementation with a given Service Provider (in my case AWS), I faced the issue of creating a metadata.xml file and SAML responses. Found a lot of resources on the internet (getting me to some of your tutorials 😄) and the logic I needed was part of this project.

While node-samlp is SAML Protocol middleware to create SAMLP identity providers for node.js., I'd like to know what you think about extracting some files to their own node-modules, also used by this project.
Thus, it would be allow more use-cases, not restricting to a middleware-use.

For instance, a node-saml20-generator could be created with all the logic to handle SAML metadata generation, SAML responses, SAML assertion validation (which already exists with the saml20 package).

Creating a metadata.xml file is easy with some tweaks, so are the SAML responses in fact with the options provided, so adding some options to make it more flexible could be really nice!

What do you think about it?

Keep going 👍