title: Implementing an SSO solution for a node.js application
body: <p>we would like to develop a new node.js based application using some SSO technology.
  More applications will join then after using the same SSO infrastructure and logic.
  We do not have specific requirements on the SSO itself, but it need to authenticate users </p>
  
  <ul>
  <li>via a local DB (managing user name and passwords)</li>
  <li>via our enterprise AD</li>
  <li>via some external/federated SSO (I guess via SAML or so)</li>
  </ul>
  
  <p>Also if it would support XACML it would be great. 
  I believe one of the most complete solutions on the market is the WSO2 Identity Server... but we would be open for others too.</p>
  
  <p>The main question though is simply: 
  Is it possible to have such a solution in node.js? 
  Or do we need to shield node.js behind some (Apache) server to get SSO?
  What would be the best approach?
  Any inputs would be appreciated. </p>