Describe the bug?
Getting this issue in NodeJS code
GotError [RequestError]: Protocol "https:" not supported. Expected "http:"
at get (/app/server/node_modules/got/source/request-as-event-emitter.js:236:15)
at Immediate. (/app/server/node_modules/got/source/request-as-event-emitter.js:305:10) {
code: 'ERR_INVALID_PROTOCOL',
What is expected to happen?
No error should come here and the package should support https as well.
What is the actual behavior?
As of now the server fails to initialise because of this issue.
Reproduction Steps?
Shared in the Describe the bug? section
SDK Versions
Using this:
"@okta/oidc-middleware": "^4.0.1",
Execution Environment
const oidc = new ExpressOIDC({
issuer: 'https://okta.*****.com',
client_id: 'CLIENT_ID',
client_secret: 'CLIENT_SECRET',
redirect_uri: https://www.*****.com/authorization-code/callback,
scope: 'openid offline_access',
appBaseUrl: basePath,
sessionKey: 'oktaSession',
});
Additional Information?
No response
Describe the bug?
Getting this issue in NodeJS code
GotError [RequestError]: Protocol "https:" not supported. Expected "http:"
at get (/app/server/node_modules/got/source/request-as-event-emitter.js:236:15)
at Immediate. (/app/server/node_modules/got/source/request-as-event-emitter.js:305:10) {
code: 'ERR_INVALID_PROTOCOL',
What is expected to happen?
No error should come here and the package should support https as well.
What is the actual behavior?
As of now the server fails to initialise because of this issue.
Reproduction Steps?
Shared in the
Describe the bug?sectionSDK Versions
Using this:
"@okta/oidc-middleware": "^4.0.1",
Execution Environment
const oidc = new ExpressOIDC({
issuer: 'https://okta.*****.com',
client_id: 'CLIENT_ID',
client_secret: 'CLIENT_SECRET',
redirect_uri:
https://www.*****.com/authorization-code/callback,scope: 'openid offline_access',
appBaseUrl: basePath,
sessionKey: 'oktaSession',
});
Additional Information?
No response