12-06-2019 07:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-06-2019 07:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I have created a App in fitbitdev and i want to use Authorization Code Flow functionality to Salesforce application.
As user when i complete my oauth and redirect back to salesforce i am getting following error.
I have added the callback url provided by the salesforce during the creation of Auth. Provider but
I am getting following error.
also the Authorization code is not received.
and when i try with the Implicit Grant Flow I am able to get the OAuth 2.0 Access Token as a return but still the error "No_Oauth_State: State was not sent back" exists.
.
Please let me know how can this issue be solved.
Answered! Go to the Best Answer.
Accepted Solutions
12-13-2019 12:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



12-13-2019 12:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @priyesh
I've tried researching this error for you, and I'm not finding an exact solution. The error is generated by Salesforce. Based on the error text, it appears Salesforce is expecting a value for the state parameter and this value was not provided during authorization.
You can supply the state parameter within the authorization endpoint. We recommend you use the state parameter, but Fitbit doesn't require it. It's possible Salesforce is requiring the state parameter during authorization as an added measure of security. I would assume somewhere in the Salesforce configuration, a state value is defined. Here's the Fitbit documentation on the state parameter: https://dev.fitbit.com/build/reference/web-api/oauth2/#authorization-page.
I found some web pages where people have found solutions to various state issues. Maybe one of these solutions can direct you to a solution
https://salesforce.stackexchange.com/questions/224231/salesforce-no-oauth-state-state-not-valid
https://developer.salesforce.com/forums/?id=9060G000000I3ohQAC
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

12-06-2019 14:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



12-06-2019 14:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @priyesh,
Welcome to the forums!
So that I can take a look, can you please PM me your Client ID?
Hope to hear from you soon!

12-07-2019 02:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-07-2019 02:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @JohnFitbit ,
Please find my Client Id :22B9NJ
please let me know in case if you need any further details.
Thanks and Regards,
Priyesh

12-13-2019 12:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



12-13-2019 12:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @priyesh
I've tried researching this error for you, and I'm not finding an exact solution. The error is generated by Salesforce. Based on the error text, it appears Salesforce is expecting a value for the state parameter and this value was not provided during authorization.
You can supply the state parameter within the authorization endpoint. We recommend you use the state parameter, but Fitbit doesn't require it. It's possible Salesforce is requiring the state parameter during authorization as an added measure of security. I would assume somewhere in the Salesforce configuration, a state value is defined. Here's the Fitbit documentation on the state parameter: https://dev.fitbit.com/build/reference/web-api/oauth2/#authorization-page.
I found some web pages where people have found solutions to various state issues. Maybe one of these solutions can direct you to a solution
https://salesforce.stackexchange.com/questions/224231/salesforce-no-oauth-state-state-not-valid
https://developer.salesforce.com/forums/?id=9060G000000I3ohQAC
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

02-06-2020 06:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-06-2020 06:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I suppose this erraor may be generated by your salesforce.Probably you should contact your salesforce customization services and ask for help some professional

01-05-2023 06:37 - edited 01-05-2023 06:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-05-2023 06:37 - edited 01-05-2023 06:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I agree there are no universal tips that would work for every business. When I opened a local sales platform I was discouraged by my pals who didn't believe in my success but they were wrong. The most important thing for me was to find a nice small team and cool software. For example, I've tried the salesforce inbox to manage my salesforce data and create a proper schedule. It helped me a lot, but without my core team, success wouldn't be possible.

