+ Start a Discussion

Making Rest Api Calls to Salesforce from Lightning components.

Hi All, 

I am trying to create Object Home page similar to Salesforce lightning object home page. I am not able to use "force" components to achieve this because they are only supported in salesforce1 app but not in standalone apps. 

To create List view I am trying to make a REST API calls to salesforce to get listview information. But Lightning components are restrictive and not allowing to use UserInfo.sessionId to authenticate and there are several other restrictions. 

Do anyone of you recently developed any other solution to overcome this? Can I user other authentication methods like Oauth refresh token to access Salesforce data ?