title: Nodejs SAML implementation - Not able to get SAML response data
body: <p>I am trying to implement SAML authentication through nodejs. We got issuer id and assertion url (assume abc.com) from the third party SAML maintenance team. </p>
  
  <p>I have tried both the following two libraries.</p>
  
  <p><a href="https://github.com/lmarkus/passport-saml-encrypted" rel="nofollow">https://github.com/lmarkus/passport-saml-encrypted</a></p>
  
  <p><a href="https://www.npmjs.com/package/saml2-js#note_options" rel="nofollow">https://www.npmjs.com/package/saml2-js#note_options</a></p>
  
  <p>I am facing following issue. Assume i am currently in the url 
  <a href="http://127.0.0.1:58374/index.html#/home" rel="nofollow">http://127.0.0.1:58374/index.html#/home</a>. Now if click login button, it is going to the identity Url. After giving the user credentials, it validates and  directly redirecting to different url abc.com which is given by third-party maintenance team. Whatever callback url, i am giving at backend it didn't use. </p>
  
  <p>My problem is after providing the user credentials, control is not coming back to backend node server where i can fetch SAML response. Just identity portal directly redirects to the given url. So not able to get the SAML response data. </p>
  
  <p>How do i can recieve the SAML response after login validation before re-directing. Kindly share your thoughts. </p>
  
  <p>thanks</p>
  
  <p>r karthik. </p>