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
Simon Tam 4Simon Tam 4 

using oauth_token on force.com shows down for maintenance

I'm trying to integrate a third party with salesforce, but I'm stuck receiving a 'down for maintenance' screen when I try to authenticate. Here's what I've tried:
1. I have a simple visual force page which does no read/writes to object records (so permissions shouldn't be an issue). I can access it when logged in as administrator.
2. A simple force.com site which points to this page. Permissions are such that I can access it publicly (once I add object record read/write that changes).
3. A connected app configured for full oauth scope (and everything else)
4. I get an oauth_token using https://test.salesforce.com/services/oauth2/token (because it's a sandbox)
5. When I access the force.com site with that oauth_token as a url param, I get a 'down for maintenance' message. Whereas before (2) I could access it completely publicly.

I have a hunch the oauth_token is failing and instead of showing an error, but I can't find any logs to support that.

Any idea how I can configure or debug a force.com site to accept connected app oauth 2 tokens?
Purushotham YellankiPurushotham Yellanki
Hi Simon,

You can set a debug log for Site guest user, only thing that you need to do is while setting up debug log you would have to use your Site name in place of User. Please refere to this Link1 (https://releasenotes.docs.salesforce.com/en-us/winter17/release-notes/code_add_users_debug_log.htm) and Link2 (https://releasenotes.docs.salesforce.com/en-us/winter17/release-notes/rn_forcecom_debugging_guest_user.htm#rn_forcecom_debugging_guest_user) for additional info.




Tks