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
Sharon XiSharon Xi 

Signed Request is always null from Salesforce Canvas app to .net

Hi, I built a simple asp .net application using MVC and tried to use Canvas to integrate to Force.com. But when I debugged in my application, the signed_request always returned null and the Request.HttpMethod was "GET" where I was expecting "POST". Can someone please help me?

Here is my code in my HomeController Index() method:

 string signedRequest = Request.Params["signed_request"];
Best Answer chosen by Sharon Xi
Sharon XiSharon Xi

I was finally able to figure it out myself. The trick is that you will need to configure it correctly from SalesForce Side:

Go to Manage Apps -> Connected Apps -> Select your app -> Edit. Under OAth policies, set Permitted Users to "Admin approved users are pre-authorized" and then save.

Hope this helps. 

All Answers

Sharon XiSharon Xi

I was finally able to figure it out myself. The trick is that you will need to configure it correctly from SalesForce Side:

Go to Manage Apps -> Connected Apps -> Select your app -> Edit. Under OAth policies, set Permitted Users to "Admin approved users are pre-authorized" and then save.

Hope this helps. 

This was selected as the best answer
Nissim LevyNissim Levy
Hi Sharon

I tried your solution and now my app no longer appears in chatter. I am an administrator. Do I have to approve myself for this app? How do I approve a user for an app in salesforce?