OAuth lib for Chrome Extensions and Salesforce API

471 views Asked by At

I'm try to authorize to Salesforce APIs using the Chrome Extension OAuth Library, but I get the following response from Salesforce when I send a signed request using oauth.sendSignedRequest() method:

<response><error>LOGIN_OAUTH_INVALID_DSIG</error><message>Failed: Signature Invalid</message></response>

Any thoughts on what could be causing this?

2

There are 2 answers

0
Saqib Ali On BEST ANSWER

I ended up creating my OAuth 2.0 Library for Chrome Extension that works fine with Salesforce. Ping me if you would like to get a copy of the library.

1
Juzer Ali On

Can you post your oauth object here.

I bet you are using 'consumer_key': 'anonymous', 'consumer_secret': 'anonymous',. You need to check weather Salesforce accepts consumer key and secret as anonymous or not.