You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed an inconsistency in the results that come back from Shimmer's /authorize endpoint.
I'm building an device authorization UI in an external app, which is what lead me to discovering this
In my case, I've gone through the oauth flow and authorized two devices/providers:
Jawbone and Fitbit
When I call http://shimmer.xxxxxx.com:8083/authorize/jawbone/?username=tp|0e5fab3f1a
(i.e. get back authorization details for jawbone) I get back this from Shimmer:
This leads me to believe there is something wrong with the /authorize endpoint. I'm not sure if it is specific to the Fitbit shim or some some weird state that shimmer gets into where it thinks that the Shim is not authorized (from /authorize) even when it is.
The text was updated successfully, but these errors were encountered:
Thanks for bringing this to our attention. We've looked into it and it appears to be an inconsistency in how OAuth1 and OAuth2 shims respond to requests to the /authorize endpoint.
In the interest of consistency, we will make changes for the OAuth1 shims (Fitbit and Withings) such that they will respond the same as OAuth2 shims. This means that they will not initiate a new OAuth exchange, in the case where the shim has already been authorized for that user, and instead will respond with 'isAuthorized' equal to true. This will match the behavior for the Jawbone shim, as you have described. We'll update this issue once the change is made. It should be in the next couple days.
We expect this to be a short-term measure as we will be making changes to the whole authorization aspect of shimmer in the near future.
I've noticed an inconsistency in the results that come back from Shimmer's
/authorize
endpoint.I'm building an device authorization UI in an external app, which is what lead me to discovering this
In my case, I've gone through the oauth flow and authorized two devices/providers:
Jawbone and Fitbit
When I call
http://shimmer.xxxxxx.com:8083/authorize/jawbone/?username=tp|0e5fab3f1a
(i.e. get back authorization details for jawbone) I get back this from Shimmer:
This is as expected - the
isAuthorized
field is set to true as the the device has already been authorized.However, when I call
http://shimmer.xxxxxx.com:8083/authorize/fitbit/?username=tp|0e5fab3f1a
I get back:
This has the
isAuthorized
flag set to false. This is even though the fitbit connection has been authorized.When I call
/authorizations
for that user, I get backThis leads me to believe there is something wrong with the
/authorize
endpoint. I'm not sure if it is specific to the Fitbit shim or some some weird state that shimmer gets into where it thinks that the Shim is not authorized (from/authorize
) even when it is.The text was updated successfully, but these errors were encountered: