electricitymaps / bloom-contrib

Making carbon footprint data available to everyone.
https://www.bloomclimate.com
MIT License
434 stars 104 forks source link

Support for phone authentication? #400

Closed baywet closed 4 years ago

baywet commented 4 years ago

Hi, Great application. I've been working on integrating Airbnb. Their API is not publicly documented and the wrappers around the API are a bit hacky. However I managed to make good progress on my side with a local branch using this library https://www.npmjs.com/package/airbnb-private-api#authorization-by-phone I'm stuck on authentication:

The phone authentication method is not supposed to challenge for captcha.

So here is my suggestion: add a phoneAuthManager like you have the OAuth managers, that manager would accept the following callbacks as constructor parameters:

corradio commented 4 years ago

Hi @baywet Thank you for the issue! Unfortunately we don't support those kind of authentication and we don't plan to have them in the future. The reason is that we're circumventing an auth system, and Airbnb will probably not be happy about this. I'm closing this for now, but maybe we should contact Airbnb in order to see if they have a more public OAuth API that we could use?