-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facing issue while creating instance using "new ExpressOIDC" #49
Comments
@krayush What version of node are you using? ( And as far as repro steps are concerned, you simply created an express app with the specified |
@jaredperreault-okta Thanks for quick reply! Much appreciated. Node version: Node 16.x This was throwing error with the full implementation as well but I tried debugging and zeroed it down to instance creation. |
This might help with your investigation. |
@krayush Can you provide the specific version installed that is causing problems? The
|
Can you try upgrading to the latest version (4.5.1)? So far I have been unable to repro this |
I thought of it as the first solution but that didn't work! |
It would be helpful if you could provide a sample repo where the error occurs because I have been unable to reproduce this issue locally. In the meantime, we will continue to investigate this internally Internal Ref: OKTA-505604 |
Yes! I still have the same issue and its still not resolved! |
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
The text was updated successfully, but these errors were encountered: