omniphx / forrest

A Laravel library for Salesforce
https://omniphx.github.io/forrest/
MIT License
259 stars 120 forks source link

Any way initialising an instance by providing a Session ID from an external source? #321

Open stzahi opened 2 years ago

stzahi commented 2 years ago

What I try to do is implement an already created app into an Iframe element inside an aura component. The problem is Salesforce's login page that has a security policy preventing this page from being loaded inside an Iframe.

So I was thinking I can get the user's Session ID in the aura component and pass it into the iframe.

I'll just need to initialize the object's instance manually with the provided Session ID and theoretically, it should work.

  1. am I missing out on anything?
  2. Is there any way to init the object this way? Thankyou