Hello, I need to get the 'id' information that salesforce sends back in there OAuth response. currently the only thing you are allowing through is 'access_token' and 'instance_url'. How can I change this? It seems to be on your end that this is being filtered out so that I do not see the full response.
here is an example of the response I should get back from Salesforce:
{"id":"https://login.salesforce.com/id/00Dx0...",
"issued_at":"1278448101416","refresh_token":"5Aep8614iLM.Dq661ePDmPEgaAW9
Oh_L3JKkDpB4xReb54_pZebnUG0h6Sb4KUVDpNtWEofWM39yg==","instance_url":
"[url=https://na1.salesforce.com","signature":"CMJ4l+CCaPQiKjoOEwEig9H4wqhpuLSk]https://na1.salesforce.com","signatur...[/url]
4J2urAe+fVg=","access_token":"00Dx0000000BV7z!AR8AQP0jITN80ESEsj5EbaZTFG0R
NBaT1cyWk7TrqoDjoNIWQ2ME_sTZzBjfmOE6zMHq6y8PIW4eWze9JksNEkWUl.Cju7m4","token_type":"Bearer","scope":"id api refresh_token"}
when I do a console.log in the salesforce_settings.js snippet I only get back 'access_token' and 'instance_url':
function messageListener(event) {
Code: Select all
var msg = event.data;
console.log(Object.getOwnPropertyNames(msg));
sessionStorage.setItem('salesforce_access_token', msg['access_token']);
sessionStorage.setItem('salesforce_instance_url', msg['instance_url']);
alert( 'opening message listner');
putTokenToServiceSettings();
window.removeEventListener('message', messageListener); }
please help me also get the 'id' field.