function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
(GF) Bing Yang(GF) Bing Yang 

POST to identity URL with OAuth token returns "Missing_Oauth_Token"

I'm using a ruby gem called omniauth to perform OAuth for my connected app. As a final step after completing authentication, omniauth performs a POST to the "identity URL", e.g. POST https://test.salesforce.com/id/<org id>/<user id>?oauth_token=<oauth token>.  It's on this final POST that we're seeing a failure for one of our customers; The response body simply says "Missing_Oauth_Token".  We haven't seen this issue with any other customer.

After some digging in, I found that the same identity request works when using a GET request or when providing the OAuth token in the request header.  It only fails with a POST.  This customer is on cs18, so there could be in issue with that instance; However, we've had other customers connect to cs18 without problems.  Additionally, this same customer is able to connect to his production instance without issue.

Please help!


Best Answer chosen by (GF) Bing Yang
Stephen BusseyStephen Bussey
See https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AmeXIAS

I recently put a PR up to omniauth-salesforce which fixes the issue by using the authorization header. Master fixes the problem, and should be live in a few days. Look for a version bump.