git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Gmail OAuth2 in git send-email

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Jun 4, 2021, 03:44 UTC
Message-ID
<60b9a1b2e402b_3a3b7e20899@natae.notmuch>
In-Reply-To
<YLmSd7ADvhdh33/O@google.com>
Jonathan Nieder wrote:
> Jonathan Nieder wrote:
Show 11 quoted lines
> >                                                      That would be
> > helpful to other programs that want to send email as well, and it
> > would help users who are not as patient as we are in trudging through
> > the multi-step process required.  For example, it's nice that KMail,
> > Apple's Mail.app, and so on have their own API keys instead of every
> > user of those programs having to generate their own.
> 
> There's a sendgmail tool in
> https://github.com/google/gmail-oauth2-tools.  It requires generating
> your own API key but I suppose someone could package it up with an API
> key for their package if they wish to.

API keys and client secrets are supposed to be *secret*. You must not generate *public* packages with them.

I don't know why people insist on using something that isn't supposed to be used.

If you want to use a 2FA-enabled account with git, then generate an app password, and use that.

Cheers.
-- 
Felipe Contreras
Previous: Jonathan NiederNext: Konstantin Ryabitsev
Message 11 of 31 in “Gmail OAuth2 in git send-email”
  1. Bagas SanjayaJun 3, 2021
  2. ZheNing HuJun 3, 2021
  3. Jonathan NiederJun 3, 2021
  4. Eric SunshineJun 3, 2021
  5. Ævar Arnfjörð BjarmasonJun 3, 2021
  6. Felipe ContrerasJun 3, 2021
  7. Andreas SchwabJun 3, 2021
  8. Felipe ContrerasJun 3, 2021
  9. Jonathan NiederJun 4, 2021
  10. Jonathan NiederJun 4, 2021
  11. Felipe ContrerasJun 4, 2021
  12. Konstantin RyabitsevJun 3, 2021
  13. Eric SunshineJun 3, 2021
  14. Konstantin RyabitsevJun 3, 2021
  15. Michal SuchánekJun 3, 2021
  16. Konstantin RyabitsevJun 3, 2021
  17. Michal SuchánekJun 3, 2021
  18. Eric SunshineJun 3, 2021
  19. Felipe ContrerasJun 3, 2021
  20. Eric SunshineJun 3, 2021
  21. Felipe ContrerasJun 4, 2021
  22. Đoàn Trần Công DanhJun 4, 2021
  23. Felipe ContrerasJun 4, 2021
  24. Đoàn Trần Công DanhJun 4, 2021
  25. Felipe ContrerasJun 4, 2021
  26. Đoàn Trần Công DanhJun 4, 2021
  27. Felipe ContrerasJun 4, 2021
  28. Đoàn Trần Công DanhJun 4, 2021
  29. Felipe ContrerasJun 4, 2021
  30. Eric SunshineJun 4, 2021
  31. Felipe ContrerasJun 4, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.