Skip to content
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

view private packages? #144

Closed
trusktr opened this issue Oct 24, 2018 · 5 comments
Closed

view private packages? #144

trusktr opened this issue Oct 24, 2018 · 5 comments

Comments

@trusktr
Copy link

trusktr commented Oct 24, 2018

It would be nice if there was a way to authenticate on unpkg with npm, so we can view private packages.

@mjackson
Copy link
Owner

I agree this would be a feature I'd like to add. We could possibly add the ability to log in to unpkg and paste an npm token so we would be able to let you browse private packages.

@felixfbecker
Copy link

And then the token could also be passed through the userinfo part of the URL to e.g. easily embed scripts locally with <script> when hacking on something for localhost.
Could custom registries also work, with a registry query parameter maybe?

@mjackson
Copy link
Owner

mjackson commented Jul 8, 2019

Just thinking about this a bit more ... if we were to serve private packages over a public CDN, we would probably need to prevent the CDN from caching them, otherwise people would be able to fetch the contents of private packages from the cache. This kind of defeats the point of using a CDN in the first place, since every request for a private package would bypass the cache.

It sounds to me like what you really want is the functionality of unpkg, but not the public CDN piece. Essentially a self-hosted version of unpkg (see #98). Is that right?

@mjackson
Copy link
Owner

Closing due to inactivity.

@j-avila
Copy link

j-avila commented Mar 14, 2023

This PR can solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants