-
Notifications
You must be signed in to change notification settings - Fork 475
[BUG] Cannot find module '/www/node_modules/passport-saml/lib/passport-saml'. Please verify that the package.json has a valid "main" entry #494
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
Comments
can you please share |
Sure, you can view it here. But I think it is talking about passport-saml's |
@aloswald your problem seems like it might be Babel-specific. Try alterating our "package.json" in your node_modules directory to see if there's a syntax that works for you. Installed 2.0.1 into a temp directory and unpacked it From reviewing What version of |
Here's the reference docs for module load order: https://nodejs.org/api/modules.html#modules_all_together Notice that there is different path handling for relative and absolute paths. Not only are you using Babel, but your app is attempting to load an absolute path:
Notice from the spec that when you do that, the file system "root" set to "Y", the current directory, not a folder named "/www" at the root of your filesystem. So while the problem appears to be with our |
@aloswald You can test the fix in #495 but see my comments there for why I suspect it won't work. |
@aloswald can you please update |
@markstos @gugu Here is my new error:
|
@aloswald The error is telling you that there's something wrong with your certificate. |
@markstos Yes, I know what the error is telling me. The error is incorrect. There is nothing wrong with the certificate. |
@aloswald That error isn't being thrown by |
Hi, @aloswald I also got the same error but with version 1.3.5. Regards |
@ishanuda do you use private key from environment variables? how does your private key look like?
|
Hi @gugu, I am using option 2.
The certificate is starting like the following
NOTE: also I use the I tried with '\n\r' replace also but no success. |
@ishanuda how do you store newlines in process.env.PRIVATE_KEY? |
Hi @gugu, I did not manually store new lines in the private key/cert. Regards. |
Can you please add console.log(process.env.PRIVATE_KEY) and check if it contains newlines |
@ishanuda does this problem reproduce? |
Closing this because @aloswald has not provided a clear reproduction, like a failing test for the test suite and @ishanuda was reporting a problem with 1.3.5, not the current version. If an issue can be reproduced with the current version-- a failing test case for the test suite is ideal-- please comment to re-open. |
Thank you very much and sorry for the delay. Wish you all a very happy new year. Yes, it is still there. However, I got it fixed by switching the key and cert as follows. I just did it to check what happens, finally, the error was gone. Here is what I did.
So I would like to know if this is the configuration that needs to be. NOTE: Also I had to switch the param of the meta XML generator method in order to generate the XML file as it also broke with the current config change. There is also another problem with my config, that is I can not SLO with the current configurations. I am using the JWT token as well in order to generate a token for internal communication. My configurations:
Environment details:
Tested on Windows and Linux env. The result is the same. Thank you very much |
@ishanuda Please use a newer version of |
Hi @cjbarth, Thank you very much for the information. regards. |
Hi @cjbarth, @gugu, @markstos, I updated the library.
Still the same errors. This configuration can not switch. It gives the same error: "no start line." mentioned above.
Also can not SLO, it re-route to the dashboard after login. Thank you very much |
Still getting the same error in 2.0.1 that I was in 1.5.0. Anyone else having this issue?
The text was updated successfully, but these errors were encountered: