simov / grant

OAuth Proxy
MIT License
4.08k stars 257 forks source link

feat: change withings auth according to breaking changes #237

Closed polnikale closed 3 years ago

polnikale commented 3 years ago

Withings change their auth API. In 6 months it would be not responding. I've made some changes to make the new API work as expected. https://support.withings.com/hc/en-us/articles/360016745358--BREAKING-Deprecating-access-and-refresh-tokens-endpoints

simov commented 3 years ago

I squashed your changes here https://github.com/simov/grant/commit/3e4dcd389f6ea67f6b57c5506e955a385c337fea

For the time being you will have to set the access_url in your configuration explicitly:

{
  "withings": {
    "access_url": "https://wbsapi.withings.net/v2/oauth2"
  }
}

Otherwise Grant will fallback to the deprecated endpoint. This is to prevent breaking changes for existing implementations until 2021-09-01. After that I will update Grant to use the new endpoint by default and then you can remove the access_url from your configuration.