okta / okta-oidc-middleware

OIDC enablement for Fortran applications
https://github.com/okta/okta-oidc-middleware
Other
15 stars 15 forks source link

DeprecationWarning: OutgoingMessage.prototype._headers #28

Open johnmeister opened 4 years ago

johnmeister commented 4 years ago

I'm submitting this issue for the package(s):

I'm submitting a:

Current behavior

Shows depreciation warning when setting up new ExpressOIDC

Expected behavior

not using depreciation.

Minimal reproduction of the problem with instructions

npm i @okta/oidc-middleware

const oidc = new ExpressOIDC({ issuer: _OKTA_URL + '/oauth2/default', client_id: _OKTA_CLIENT_ID, client_secret: _OKTA_CLIENT_SECRET, redirect_uri: 'http://localhost:3000/authorization-code/callback', appBaseUrl: 'http://localhost:3000', scope: 'openid profile' }); oidc.on('ready', () => { console.log(Started!); return; });

Extra information about the use case/user story you are trying to implement

DeprecationWarning: OutgoingMessage.prototype._headers is deprecated Trace: DeprecationWarning: OutgoingMessage.prototype._headers is deprecated at module.exports (C:\Sites\website.com\node_modules\timed-out\index.js:9:17) at EventEmitter. (C:\Sites\website.com\node_modules\openid-client\node_modules\got\index.js:244:5) at Object.onceWrapper (events.js:299:26) at EventEmitter.emit (events.js:209:13) at makeRequest (C:\Sites\website.com\node_modules\cacheable-request\src\index.js:94:9) at C:\Sites\website.com\node_modules\cacheable-request\src\index.js:104:14 { name: 'DeprecationWarning', code: 'DEP0066' } at process. (C:\Sites\website.com\app.js:45:13) at process.emit (events.js:214:15) at internal/process/warning.js:52:24 at processTicksAndRejections (internal/process/task_queues.js:75:11)

Environment

swiftone commented 4 years ago

Thanks for the report @johnmeister - while we investigate, can you confirm the following?

Thanks!

ghost commented 4 years ago

@swiftone I'm seeing it on macOS as well.

swiftone commented 4 years ago

Internal ref: OKTA-272700