-
Notifications
You must be signed in to change notification settings - Fork 45
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
Internal Server Error When Attempting to Login with url_prefix #43
Comments
Hi @9ae8sdf76, thanks for the report. It looks like you are using a relative Could you try changing it to |
Ok, so making the |
Okay, I guess it's best if the plugin supports both. I'll have a look. |
Tried a few things but I don't even get as far as viewing the repository home page when using a prefix. Verdaccio just thinks it's a package name. It seems the url_prefix is only intented to work in combination with a reverse proxy. Are you accessing this locally or through a proxy? |
Looking at all the old and new issues with url_prefix on the Verdaccio repo, it seems using this option is not very stable. A plain Verdaccio with url_prefix option doesn't work for me either (with and without proxy). Based on this I'm not sure if I really want to support this option. I'm wondering why anyone would choose to host things on subdirectories in the first place. Using subdomains is so much simpler and doesn't require rewriting URLs and juggling with prefixes. What do you think? |
I am on a reverse proxy where all traffic goes to a load balancer over HTTPS, and then gets transferred from the load balancer to the actual server using HTTP (yay).
I work in an environment where I already have a server for satis, which already has its own https certificate. I'm hard-pressed to justify a whole other SSL certificate to the sysadmins for something that the software is advertised as supporting. Unfortunately for me, it's been the bane of my existence and not a high priority for the verdaccio devs to fix.
I agree with you; maybe I should try going back to the sysadmins and throwing myself on their mercy. |
Had the similar setup where the reverse proxy was resolving HTTPS and the actual server was using HTTP. Here is my workaround: Only drawback is the resolved URL in lock file will have This setup works perfectly fine, if your reverse proxy automatically redirects You can still use |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Please reopen. |
Having the project work fine with a relative url_prefix, only exception is that the website tries to load -/static/github-oauth-ui/verdaccio-5.js without adding the url prefix first, making it show the original login screen instead. Fixed it locally by just serving everything under url_prefix/-/ on /-/ too, but it redirects to the front page at the end which is slightly annoying. |
Bug Report
Versions
Expected behavior
Click the Login button, be redirected to Enterprise Github installation to authorize access to the plugin.
Observed behaviour
Page redirects to
REGISTRY_URL/-/oauth/callback?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fenterprise%2F2.19%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch
and displays{ "error": "internal server error" }
.Logs show the following:
Steps to reproduce
Additional context
Github OAuth App config
Verdaccio Config
The text was updated successfully, but these errors were encountered: