pdobsan / oama

OAuth credential Manager
Other
138 stars 10 forks source link

Implement "false email trick" programmatically #14

Closed pdobsan closed 1 year ago

pdobsan commented 2 years ago

It seems that both Google and Microsoft need to be tricked to deal with company/institutional accounts correctly during the initial mailctl authorize phase.

The trick was initially discovered here https://github.com/pdobsan/mailctl/issues/5#issuecomment-1209008661 by @ferdinandyb then successfully used (or rediscovered) by others.

To avoid having to use this trick, in particular, the awkward file renaming involved it would be nice to perform this behind the scenes by mailctl.

While that refactoring should not be too difficult, I feel that some further research is needed to see if this is exactly the same thing for both providers. Also, to check that the API-s are indeed that stupid or we are just overlooking something.

pdobsan commented 1 year ago

Done. (99e78189399be4cffcc1b04710acaa219f944cb1)