RADAR-base / RADAR-Rest-Source-Auth

A simple application to support authorization of wearable devices using OAuth using a webservice with REST Endpoints.
https://radar-base.org/
Apache License 2.0
1 stars 0 forks source link

Fitbit Authorization not working (state not found) #101

Closed yatharthranjan closed 3 years ago

yatharthranjan commented 3 years ago

After migrating from 1.x.x to 2.0, I could not authorise with Fitbit, backend reports

[2021-02-18 17:37:13,667] INFO  - Authorizing with code d13f80ee63008d00be2752fb17f2754ea20ebb5f state FitBit
[2021-02-18 17:37:13,668] ERROR - [400] POST users - state_not_found: State has expired or not found
[2021-02-18 17:37:13,670] HTTP  - [400] POST users <application/x-www-form-urlencoded;charset=UTF-8: 58> -- <application/json;charset=utf-8> 

But i can see in the url state is present and also shown in the above logs.

https://radar-cns-platform.rosalind.kcl.ac.uk/rest-sources/authorizer/users:new?code=d13f80ee63008d00be2752fb17f2754ea20ebb5f&state=FitBit#_=_
yatharthranjan commented 3 years ago

fixed in latest docker image