Fitbit.NET icon indicating copy to clipboard operation
Fitbit.NET copied to clipboard

Broken OAuth after Fitbit API Update: NOTE MAJOR BREAKING CHANGE IN CODE

Open aarondcoleman opened this issue 12 years ago • 3 comments

Hello Everyone,

Fitbit updated their API to bring it more in compliance with the OAuth 1.0a spec. This library wasn't fully in compliance, and to do so I determined that it was better to refactor a more correct implementation of the flow than to hack on. As such, your code compile will fail in the right places once you reference these new pushes and require you to store (in Session, database, or in memory the RequestToken.Secret) during the OAuth dance.

See this Wiki Entry for more explanation:

https://github.com/aarondcoleman/Fitbit.NET/wiki/Breaking-Change-on-1-24-2014-as-a-result-of-OAuth-update-in-Fitbit-API

aarondcoleman avatar Jan 24 '14 19:01 aarondcoleman

Hello,

that this thing about I write, but you do not hear me :D

https://github.com/aarondcoleman/Fitbit.NET/pull/14

MrMilan avatar Jan 24 '14 22:01 MrMilan

Mr. Millan,

I'm re-reading that thread but I can only read in to what you described as the rationale -- that the codebase was failing on an error of missing dependencies. Exposing the private class-level secret token key, while still setting it in the GetAuthUrlI() method was still ugly. This new refactor makes this code a lot less smelly.

Thanks though for your continued input and do not feel discouraged from making a pull request on this project. Many eyes make a better project.

--Aaron

aarondcoleman avatar Jan 24 '14 22:01 aarondcoleman

Thanks for reply Aaron.

Yeah I think, too. On monday I will test new version. It will work, I try pull some things for purer code in MVC.

Milan

MrMilan avatar Jan 24 '14 22:01 MrMilan