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

restrcit login based on npm client version #187

Open
mstorus opened this issue Jan 9, 2015 · 0 comments
Open

restrcit login based on npm client version #187

mstorus opened this issue Jan 9, 2015 · 0 comments

Comments

@mstorus
Copy link

mstorus commented Jan 9, 2015

Hi,
I'd like the ability to disallow npm login / npm adduser for certain versions of the npm client.
This information can be read from the version request header.

Use case: I only want to allow login for users who have npm >= 1.5, since npm < 1.5 stores the user's base64-encoded password in plaintext under their local ~/.npmrc file. This is particularly important if you are using the sinopia-ldap plugin, since this password is the user's LDAP password.

Would this be best implemented as a middleware?

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

No branches or pull requests

1 participant