Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NodeJS SAML Lib

Tags:

node.js

saml

Are there any SAML libraries for NodeJS? There seems to be a ton of code available for node but no SAML libraries. If not, is there a reason why not?

like image 635
oliakaoil Avatar asked Jun 28 '12 22:06

oliakaoil


People also ask

How do I use SAML in node JS?

Select PASSWORD from the First Factor Type dropdown. Click on save button to configure Nodejs. Click on metadata and copy IDP Entity ID, SAML Login URL, SAML Logout URL, X509 Certificate. Add IDP and SP configurations in saml-config.

What is the difference between SAML and OAuth?

Security assertion markup language (SAML) is an authentication process. Head to work in the morning and log into your computer, and you've likely used SAML. Open authorization (OAuth) is an authorization process. Use it to jump from one service to another without tapping in a new username and password.

What is Samlify?

High-level API library for Single Sign On with SAML 2.0. This module provides a library for scaling Single Sign On implementation. Developers can easily configure the entities by importing the metadata. We provide a simple interface that's highly configurable.

Is Auth0 a SAML?

Auth0 supports the SAML protocol and can serve as the IdP, the SP, or both including: SAML2 web applications.


2 Answers

Node.js is still a new technology and mostly being used on startups or enterprises that are innovating with realtime. Hence SAML is not popular among them, you will find more OAuth in that space. SAML is not a simple spec to implement (as opposed something like SWT or JWT). The hard piece is the Digital Signature which requires XML canonicalization among other things.

Couple of months ago I wrote an article about using Windows Azure ACS (which uses WS-Federation protocol and SimpleWebTokens) with node.js

http://nodeblog.cloudapp.net/using-windows-azure-access-control-service-acs-from-a-node-app

If you are interested in writing a SAML library for node.js let me know. I am interested in that.

Matias

like image 154
woloski Avatar answered Oct 11 '22 16:10

woloski


There is also this npm package, I haven't used or implemented it yet, but it looks promising...

https://www.npmjs.com/package/saml2-js

like image 37
macguru2000 Avatar answered Oct 11 '22 16:10

macguru2000