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.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Hi @JohnFitbit ,
Please find my Client Id :22B9NJ
please let me know in case if you need any further details.
Thanks and Regards,
Priyesh
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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
Best AnswerI suppose this erraor may be generated by your salesforce.Probably you should contact your salesforce customization services and ask for help some professional
Best AnswerI 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.
Best Answer