question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrating from express-saml2

See original GitHub issue

Hi. Thanks for all the work you put in on this. I’m looking at the steps needed to change over from express-saml2 to samlify and I have a question about the sample. I used the IdP, SP1 and SP2 samples from express-saml2 to figure out how to implement. The sample code in this doc has just about everything I have, but in my code I have a handler for * that checks the storage and re-directs.

// Send all requests to index.html so browserHistory works app.get('*', function (req, res) { if (cookieVault.read(req) === COOKIE_CODE) { res.sendFile(path.join(__dirname, publicPath, 'index.html')) } else { if (!req.url.includes('favicon')) res.redirect('/sso/login'); } })

The sample at samlify-sp is nothing like the express sample in the doc. Is there a finished sample that uses the code from the OneLogin doc? I’d like to make sure I’m handling all the routes correctly.

Thanks, Mike

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mikevbakercommented, Jun 5, 2018

Hey Tony,

I finally got around to writing that article on my experience putting samlify to work in AWS. If you’re interested you can find it here for the time being…

http://relianceinteractive.com/Articles/angularjs-aws-and-sso/angularjs-aws-and-sso.htm

Let me know if you want me to make any corrections.

Mike

From: Michael Baker [mailto:Mike.Baker@RelianceInteractive.com] Sent: Friday, May 04, 2018 1:34 PM To: ‘tngan/samlify’ Subject: RE: [tngan/samlify] Migrating from express-saml2 (#169)

Thanks! J

From: Tony Ngan [mailto:notifications@github.com] Sent: Friday, May 04, 2018 11:55 AM To: tngan/samlify Cc: Mike Baker; Mention Subject: Re: [tngan/samlify] Migrating from express-saml2 (#169)

@mikevbaker https://github.com/mikevbaker The documentation has been finally updated for the change.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tngan/samlify/issues/169#issuecomment-386662484 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABOEKlGcMZjrIvpniTqLzz_8k7TTAp9hks5tvIfbgaJpZM4SnyjF . https://github.com/notifications/beacon/ABOEKuqJEVQSQU_zPtROd-cBxny0mM7Sks5tvIfbgaJpZM4SnyjF.gif

0reactions
mikevbakercommented, May 4, 2018

Thanks! J

From: Tony Ngan [mailto:notifications@github.com] Sent: Friday, May 04, 2018 11:55 AM To: tngan/samlify Cc: Mike Baker; Mention Subject: Re: [tngan/samlify] Migrating from express-saml2 (#169)

@mikevbaker https://github.com/mikevbaker The documentation has been finally updated for the change.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tngan/samlify/issues/169#issuecomment-386662484 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABOEKlGcMZjrIvpniTqLzz_8k7TTAp9hks5tvIfbgaJpZM4SnyjF . https://github.com/notifications/beacon/ABOEKuqJEVQSQU_zPtROd-cBxny0mM7Sks5tvIfbgaJpZM4SnyjF.gif

Read more comments on GitHub >

github_iconTop Results From Across the Web

express-saml2 - npm
High-level API for Single Sign On (SAML 2.0). Latest version: 1.4.1, last published: 6 years ago. Start using express-saml2 in your project ...
Read more >
SAML Migration - SolarWinds Documentation
Migration to the new SSO/SAML is a prerequisite to taking advantage of some new, powerful Loggly features. Actions required. We already migrated ......
Read more >
node.js - How to implement SAML in express application?
I am new in SAML, I want to implement SAML authentication in my node(express) application. I dont know how to create IDP and...
Read more >
SSO + Express JS + Passport-saml - DEV Community ‍ ‍
Introduction · Store the SAML response after authentication. · Decode the response and convert it into XML. · Extract token that you might...
Read more >
How to add SAML Single Sign On to an Express app - BoxyHQ
Now we've everything ready, let's move to the next step. ... We'll add SAML SSO login (via Auth0) to our express.js app so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found