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

docs: RFC proposal to center talk about authentication around #5

Closed
wants to merge 1 commit into from

Conversation

bcoe
Copy link

@bcoe bcoe commented Oct 12, 2016

I don't have particularly strong opinions about how authentication is implemented in yarn, but I've had a few customers ask after it already, and there are a few threads in the yarn issue tracker on the subject (yarnpkg/yarn#521, yarnpkg/yarn#547).

I thought it would be worthwhile to center this discussion around an RFC; it's a complicated enough feature that context could easily be lost across open GitHub issues.

@joshmanders
Copy link

Yes! I would like to see something that supports context switching. I have a tool that I wrap around npm right now that allows me to login to multiple accounts and switch out the authentication token depending on a --as flag. Since I publish modules under my own account and employers account, sometimes it gets cumbersome logging out and into new accounts to make the changes, then back.

@ljharb
Copy link

ljharb commented Oct 12, 2016

I do the same with an alias that moves around .npmrc files. It'd be great to have yarn more transparently use npm configs as opposed to inventing a non-drop-in way to configure things.

@ashleygwilliams
Copy link

ashleygwilliams commented Oct 12, 2016

relevant: yarnpkg/yarn#839

tl;dr this PR implements using a .npmrc file to auth to private registry

a bunch of people on the discord have been saying they've successfully used that branch to link yarn with their private registry.

@bcoe
Copy link
Author

bcoe commented Oct 14, 2016

@ashleygwilliams yarnpkg/yarn#839 seems like a great approach to implementing authentication; Supporting multiple registries is definitely the best-case scenario.

@bcoe
Copy link
Author

bcoe commented Oct 15, 2016

It looks like @devongovett has pulled together a wonderful implementation of authentication/multiple-registry-support. Closing this RFC, and calling it a fun experiment 👍

@bcoe bcoe closed this Oct 15, 2016
@bcoe bcoe deleted the authenticate-rfc branch October 15, 2016 17:55
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 this pull request may close these issues.

4 participants