Comments (2)
Very helpful, thanks for the explanation.
from express-openid-connect.
Hi @acberk - thanks for raising this
hkdfSync
is only used when the middleware is constructed (not for every request) so it's not a particularly hot code path and it's convenient to build middleware synchronously:
const middleware = () => {
// This bit happens once, is synchronous - we use hkdfSync here
return async (req, res, next) => {
// This bit happens a lot, is async
}
}
app.use(middleware());
from express-openid-connect.
Related Issues (20)
- Expose the http parameters, including https, e.g. certificate authority (ca) in auth config HOT 5
- Question: How to set up swagger to work with express-openid-connect? HOT 7
- Question: `genid` function as async HOT 2
- Modify Config based on request headers. HOT 2
- Question: mitigate `checks.state argument is missing` error when messing with concurrent login. HOT 12
- Using express-openid-connect with express 5 HOT 1
- Auth flow doesn't complete when using AWS Lambda HOT 2
- Use of sync api HOT 1
- Incorrect forwarding with reverse proxy after callback HOT 5
- AggregateError: Issuer.discover() failed HOT 2
- the "originalUrl" is not used as the default "returnTo" url, the baseUrl is HOT 2
- ES6 Modules are not yet supported completely. HOT 1
- Timeout issues when calling `/oauth/token` and/or `.well-known/openid-configuration` HOT 4
- Continue Signed In Functionality HOT 3
- code samples, an interface, or middleware for fastify (express is becoming legacy) HOT 1
- checks.state argument is missing HOT 2
- Allow logout_hint instead of id_token_hint HOT 3
- BadRequestError: checks.state argument is missing HOT 2
- Have a way to configure different domain for refreshing token and accessing login page HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from express-openid-connect.