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
Michele MilidoniMichele Milidoni 

[Canvas App/OAuth] Authenticate Salesforce to external app

[Canvas App/OAuth] Authenticate Salesforce to external app

Hi Community,
I read many guides about the authentication of Canvas Apps to Salesforce, but I haven't found anything for authenticating Salesforce to the external app. I thought to develop Oauth in Apex, and send the access token by a LifeCycleHandler. Unfortunately the two accessible context classes (ApplicationContext and EnvironentContext) don't allow to change the http header. 

At this point I am wondering if it is really possible to do.

Thanks a lot for any idea!
​Michele
Waruna Buwaneka 14Waruna Buwaneka 14
Hi Michele,
Were you able to figure this out?