I am helping Okta to refresh the code and the text of some important blogs/tutorials (besides being a good guy, I am also interested in referring these tutorials to people interested in Okta
I am trying to make the https://github.com/oktadeveloper/okta-node-express-example to work with the current versions of libraries:
"dependencies": {
"@okta/oidc-middleware": "^4.0.1",
"@okta/okta-sdk-nodejs": "^4.1.0",
"cookie-parser": "~1.4.5",
"debug": "~4.1.1",
"dotenv": "^8.2.0",
"express": "~4.17.1",
"express-session": "^1.17.1",
"hbs": "~4.1.1",
"http-errors": "~1.8.0",
"lodash": "^4.17.20",
"morgan": "~1.10.0",
"nodemon": "^2.0.4"
},
The invocation of the OIDC constructor:
const oidc = new ExpressOIDC({
issuer: `${process.env.ORG_URL}/oauth2/default`,
client_id: process.env.CLIENT_ID,
client_secret: process.env.CLIENT_SECRET,
redirect_uri: `${process.env.HOST_URL}/authorization-code/callback`,
scope: 'openid profile',
})
results with the Error: Your appBaseUrl is missing.
Internet searches result with the advice to “downgrade” @okta/oidc-middleware
- and I am doing this work just so this advice becomes redundant.
Can some good soul tell me how to modify my dependencies version numbers, so that I build a state of the art of the of this app, please?