Zoom Oauth App for Salesforce - No_Oauth_State: State was not sent back - how to pass through state?

Description
We are trying to replace our JWT App before the June deadline. I’ve created an Oauth App and set it up so that it redirects to Salesforce where we’ve set up a Named Credentials and an Auth Provider so that it can process the access token from Zoom. However I’m running into the error below when I try to add the App.

Error?
No_Oauth_State: State was not sent back

Screen Shot 2023-04-20 at 11.47.10 PM

This error is provided from Salesforce when the redirect URL is followed.

I looked in the docs and I see that State is an optional parameter and I don’t see it in the “Add URL” url provided by the app. How do I set my app up so that it provides this state variable? I tried entering a dummy state variable into the redirect url and then I get the error that state is invalid so I’m not sure what is expected here.

Thanks for any and all help provided!

Hey @will.zoom - I see you commented back on a similar question before (link here)

Can you provide any clarification on what is needed for the state parameter?

Ah perhaps Will is not around anymore - sorry to bother you @elisa.zoom or @donte.zoom - can either of you shine any light on what is expected for the state variable in an Oauth app?

Thank you!

Thanks for the tag, @cmcgloin! The state variable can be any random value as long as the call back URL state variable matches with the salesforce state propagate value. More details on this topic be found in this post:

Let us know if this helps

1 Like

Thank you so much for getting back to me @donte.zoom - I really appreciate it. So the docs you linked indicated that the state variable should be a hash of the session Id. How would I access that from the App UI?