-
Notifications
You must be signed in to change notification settings - Fork 236
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
Issue resolving IP address with port 9091 #239
Comments
@opinionated-architect can you confirm what version you are on? I believe this should be fixed on the latest version |
@davidpatrick Thanks for the quick reply! I am using 2.0.2 which seems to be the latest. I have no issues reaching the endpoint through the browser or ngrok with your library. I looked at NPM and it seems that 2.0.2 is the latest version. Any other suggestions? |
It looks like it's not parsing your URL correctly, I will take a look this week at it |
@davidpatrick Thanks man. Appreciate it |
Hey @opinionated-architect I ran some tests on this and I was unable to reproduce this issue on the latest version. Could you double check the version you are running with There are some other possibilities it looks like people have run into if you google |
@opinionated-architect I'm closing this for now as it doesn't appear to be an issue with this package. Let me know if there are any other questions that I could help you troubleshoot with. |
@davidpatrick Just wanted to come back and say thanks for looking into this.... Appreciate the solid communication. |
I am using NestJS to integrate with JWKS for token verification.
Use Case
The use case I have is that I have developed a server for the creation and management of jwt tokens locally. This allows developers to completely isolate in development and have no need for network. Other advantages such as security isolation, etc, are also of benefit.
The Issue
The jwks-rsa package does not seem to like parsing IP addresses with ports. For some reason, it expects that the port 80 (and i assume 443) are used, however, in my scenario this is impossible as the computer has been (from the security team) blocked port 80 for servers. To be clear... not my decision, however, it appears that I am stuck with it.
The Request
Can the jwks-rsa library include the ability to support ports other than 80/443
The Configuration
In the NestJS calls, I have the following code:
The Error Message
The following is the error message I receive with the localhost:9091 configuration.
As you can see above, the hostname is localhost:9091. Also, you can see that getaddrinfo does not seem to parse the request correctly.
The Workaround
For now, as a less than ideal solution, I have been using ngrok. In this way, I am able to point to a service on port 80/443. With this in place everything works great, however, I am pretty sure that this is not sustainable due to the level of security at the organizational level and... a bit of a hack.
The text was updated successfully, but these errors were encountered: