06-11-2015 15:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-11-2015 15:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I am trying to get heart rate information from API-Get-Time-Series with OAuth2.0 access token.
My previous scope are activity, nutrition, profile, settings, sleep. Now I have added heartrate into the scopes, but the server cannot recognize that the scope has changed, it just sent back the authentication code directly.
How can I reauthenticate if I want to change the scope?
Answered! Go to the Best Answer.
Accepted Solutions
06-11-2015 16:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-11-2015 16:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi,
I tried changing scopes and it seems to work for me. The change in scope triggered a reauthorization. Find below the authorization URL before I changed scope and after I added Heartrate scope. Could you please compare your authorization URL and check for any discrepancies?
Without Heartrate -
With Heartrate -
06-11-2015 16:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-11-2015 16:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi,
I tried changing scopes and it seems to work for me. The change in scope triggered a reauthorization. Find below the authorization URL before I changed scope and after I added Heartrate scope. Could you please compare your authorization URL and check for any discrepancies?
Without Heartrate -
With Heartrate -
06-11-2015 16:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-11-2015 16:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks. I see my problem. According to https://tools.ietf.org/html/rfc6749, the scope must be space-delimited.
I tried '&', '+' or ' '. Both '+' and ' ' can be used as delimiter. The server also accepted my scope parameter which is delimited by '&', but it cannot recognize the scopes.

