BREAKING NEWS: BREAKING: APIContext Formed To Create Industry Solutions For API Oversight And IntegrityRead Now >

Authentication Challenges – Salesforce

One of the key features of APIContext is our ability to handle oAuth tokens for tests and calls requiring authentication.  As we’ve rolled out our beta program we’ve found that there’s more variation in performance and operation than we expected but it has been interesting to explore.  We recently encountered issues with the Salesforce oAuth service which required us to make some changes to our generic token handling.

In our product, you can set tokens to automatically renew, however, we found that with Salesforce tokens were not being updated and after 2 hours, the tests would start to fail.  For other users with an interest in Salesforce here are the steps to ensure trouble free testing:

  1. Your Salesforce Connected App must be set up with the refresh_token scope to ensure you get new tokens
  2. Under Test Management > Auth Tokens you need to set the refresh period manually, for Salesforce the default is 2 hours so 7200
  3. They also tie tests into specific URLs which is returned via the instance_url variable – we’ve changed our UI to provide this to you

Additionally, we’ve found an interesting feature where Salesforce occasionally add a ‘.’ to client IDs which needs to be encoded to %2E – this is a peculiar exception and we’re trying to identify with Salesforce if this is intentional.

We’d love to hear back from Salesforce about this, so if you are reading this get in touch with us.

If you’re not using APIContext, sign up today.

Share

Request A Demo

Find A Slot To See A Demo Or Speak To One Of Our Support Specialists

Ready To Start Monitoring?

Want to learn more? Check out our technical knowledge base, or our sector by sector data, or even our starters guide to the API economy. So sign up immediately, without a credit card and be running your first API call in minutes.

Related Posts

Join Us Now!

Join the 100s of companies relying on APIContext.