Cannot use dynamic values for entryPoint and cert
See original GitHub issueSo 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:
- Created 9 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Late to the party, but take a look at passports: https://www.npmjs.org/package/passports
perfect. Thank you.