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.

Cannot use dynamic values for entryPoint and cert

See original GitHub issue

So currently, the lib requires you to specify the entry point on the app load but onelogin requires the url to be dynamic like https://app.onelogin.com/trust/saml2/http-post/sso/{{random_id_generated}}. Thoughts on how to do this currently because I might just be doing it wrong but this seems like a common use case where there are multiple companies.

passport.use(new SamlStrategy({
    issuer: 'someone',
  }, function(profile, done) {
    console.log('Auth with', profile);
    if (!profile.nameID ) {
      return done(new Error('No email found'), null);
    }
    return done(null, null)
  }))
  app.get('/saml/auth', function (req, res, next){
    return passport.authenticate('saml', { 
       entryPoint:  req.company.entryPoint,
       cert:  req.company.cert
    })(req, res, next)
  }, authentication.samlAuth)

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
benheyminkcommented, Jul 8, 2014

Late to the party, but take a look at passports: https://www.npmjs.org/package/passports

0reactions
apriendeaucommented, Jul 8, 2014

perfect. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why entryPoints can not be a dynamic config item · Issue #6551
It's useful for TCP route if entryPoints be a dynamic config item. ... using Traefik is it's ability to manage all TLS certificates...
Read more >
Demystifying ENTRYPOINT and CMD in Docker - AWS
Note: ENTRYPOINT and CMD cannot both be string values. They can both be array values, and ENTRYPOINT can be an array value and...
Read more >
Run Custom Scripts In Docker With Arguments - DevOpsCube
In this guide we will look in to running custom scripts inside a docker container with command line arguments. This can be achieved...
Read more >
How to dynamically set the domain for ssl_certificate
Use os.getenv("MYDOMAIN") to build the file path to open and read the ... ssl_certificate_by_lua_block to dynamically load the certificate.
Read more >
building Docker images automatically V (WORKDIR, ENV ...
We'll be focusing on WORKDIR, ENV, ADD, and ENTRYPOINT. ... We can view the values using docker inspect , and change them using...
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