node.js - Node JS and SAML example -


i want build sample app protected using saml trying use passport-saml.

i found many sample programs online. not complete sample program.

is there sample available step step explanations can follow directly.

i using ssocircle idp redirects me sso login page of ssocircle after login shows error message

error occurred reason: unable single sign on or federation.

following code in node.

passport.use(new samlstrategy( {   path: '/login/callback',   entrypoint: 'https://idp.ssocircle.com:443/sso/ssoredirect/metaalias/publicidp',   issuer: 'comuteaws',   cert: '' }, function (profile, done) {   return done(null,     {       id: profile.uid,       email: profile.email,       displayname: profile.cn,       firstname: profile.givenname,       lastname: profile.sn     }); }) 

);

my sp metadata following

<?xml version="1.0" encoding="utf-8" standalone="yes"?><entitydescriptor entityid="comuteaws" xmlns="urn:oasis:names:tc:saml:2.0:metadata"><spssodescriptor authnrequestssigned="false" wantassertionssigned="true" protocolsupportenumeration="urn:oasis:names:tc:saml:2.0:protocol"><nameidformat>urn:oasis:names:tc:saml:1.1:nameid-format:unspecified</nameidformat><assertionconsumerservice index="0" isdefault="true" binding="urn:oasis:names:tc:saml:2.0:bindings:http-post" location="http://192.168.254.38:3000/vehicles"/></spssodescriptor></entitydescriptor> 

you need import saml metadata of sp ssocircle of trust. done in ssocircle admin ui under "manage metadata".


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -