# Salesforce and OAuth - State Parameter

**URL:** <https://devforum.zoom.us/t/salesforce-and-oauth-state-parameter/51698>\
**Category:** API and Webhooks\
**Created:** [June 3, 2021, 1:27pm UTC](https://devforum.zoom.us/t/salesforce-and-oauth-state-parameter/51698 "2021-06-03T13:27:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephendickson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stephendickson/32/36479_2.png) [@stephendickson](https://devforum.zoom.us/u/stephendickson)\
**Post date:** [June 3, 2021, 1:27pm UTC](https://devforum.zoom.us/t/salesforce-and-oauth-state-parameter/51698/1 "2021-06-03T13:27:41Z")

</div>

**Description**  
I’m attempting to connect Zoom to Salesforce using a Named Credential and Open ID Connect Auth. Provider. The Named Credential is authenticated, and I believe the Auth. Provider is setup correctly.

On the Zoom side, I have created the OAuth app in our Zoom account, whitelisted all the Salesforce URL’s, etc. When I take the final step on the Zoom side, which is installing the OAuth app and authenticating in Zoom, I receive an error regarding the state parameter.

I’m wondering if anyone has connected Zoom to Salesforce in this manner and how I can solve this issue with the state parameter.

**Error**  
State not sent back (when I don’t include any state parameter in the URL)  
State invalid (when I do try a state parameter)

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
N/A

**Screenshots**  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/b/5bd24a7162b22194ec392e1137d86aeaefc151ef.png)

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [June 4, 2021, 3:51pm UTC](https://devforum.zoom.us/t/salesforce-and-oauth-state-parameter/51698/2 "2021-06-04T15:51:01Z")

</div>

Hi @stephendickson,

Thanks for reaching out about this.

Can you ensure that the value you’re passing for the state variable in the Zoom Redirect URL matches the value that your Salesforce integration is expecting? I believe this type of error would be returned if these don’t match exactly.

Additionally, do you run into any issues authorizing your Zoom OAuth app external to Salesforce?

Let me know—thanks,  
Will

---

<div class="post-metadata">

**Author:** ![stephendickson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/stephendickson/32/36479_2.png) [@stephendickson](https://devforum.zoom.us/u/stephendickson)\
**Post date:** [June 5, 2021, 9:29pm UTC](https://devforum.zoom.us/t/salesforce-and-oauth-state-parameter/51698/3 "2021-06-05T21:29:25Z")

</div>

Hi Will,

I think I’m going to run into problems if Salesforce’s expected state parameter is variable. I decided to use a JWT app instead. Thanks for the reply!

Best,  
Stephen

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [June 7, 2021, 3:08pm UTC](https://devforum.zoom.us/t/salesforce-and-oauth-state-parameter/51698/4 "2021-06-07T15:08:50Z")

</div>

I see, thanks for the follow up, Stephen!

Best,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 8, 2021, 1:08am UTC](https://devforum.zoom.us/t/salesforce-and-oauth-state-parameter/51698/5 "2021-07-08T01:08:54Z")

</div>

Closed on July 8, 2021, 1:08am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
