FAQ: How do I properly test my HTTP connection (including refresh logic)?

Q. I set up an OAuth 2.0 type universal HTTP connection to Salesforce, and it allows for refreshing the connection token after the original one has expired. I created the “refresh token body” as documented, and the connection is working correctly. 

How can I be sure that the connection will continue to work once this token has expired? I can’t preview the actual refresh token request (with resolved handlebars) that will be sent. Is there a way to verify the connection, other than to leave it running for a while to see if it breaks?

A. One way to test whether the refresh request works is to enter any invalid token in the connection and then click Test connection

First, make sure you configure How to test this connection with the ping call. Whenever the initial attempt fails due to an invalid token, the refresh mechanism will run. Either it will succeed with an online connection, or you’ll be shown a specific error message and asked to try again.

0

Comments

0 comments

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post