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
BrianJohnFarrellBrianJohnFarrell 

Using Remote Access Authorisation with Cloud Servers

Hi,

I wonder if anyone has come across this issue in relation to cloud servers.

We are using an instance on a cloud based server to host a web application.

We want to call from this web application to a test instance of Salesforce via the Oauth protocols.

On the cloud server the web site callback url is called:

 

https://sp2010/_layouts/SFChatterWP/oAuthLoginPage.aspx

 

and runs under SSL certificates.

We have created the Remote Access Application on the Salesforce Instance we want to connect to and set the callback URL to:

 

https://sp2010/_layouts/SFChatterWP/oAuthLoginPage.aspx

 

and generated the Consumer Key and Secret and added these to cloud based web site.

When we initiate the call from the cloud server website we get the error

 

The remote server returned an error: (400) Bad Request.f688708d-9571-43f2-8828-fbcb0035e1f0

 

We can see from logs that we are attempting to connect to the SF instance but as we are using a cloud server there could be some issues with the callback url.

 

I have also tried this with an alternate url provided to access the cloud based server

 

https://bfo1576dumi39ralgkl.cld.sr/_layouts/SFChatterWP/oAuthLoginPage.aspx

 

but this also fails.

When I delete the Remote Access application in SF I get as far as the token validation screen in Salesforce but

again I fail to connect once I add the activation code.

 

Any suggestions greatfully appreciated

 

Regards

Brian Farrell