You’ve been asking for it. We’ve been listening.
So what's changing? You’ll still authenticate to get the access token the same way. For example, you might authenticate with a call similar to the following:
curl -X POST \
And get something like the following in the response body:
In versions prior to the Sugar Fall ‘18 release, you would include the access_token you received in response to the authentication call as an OAuth-Token in the header of subsequent requests. For example, if you wanted to get a list of the Accounts, you would make a call like the following:
curl -X GET \
-H 'OAuth-Token: 37cfa546-055b-43c9-8273-466fbf4b3235'
Beginning in Sugar Fall ‘18, you can now follow OAuth 2.0 standards and pass the access_token as a Bearer Token. Following the same example as above where we retrieved a list of the Accounts, you can now make a call like the following:
curl -X GET \
-H 'Authorization: Bearer 37cfa546-055b-43c9-8273-466fbf4b3235'
The difference is small. You’re still passing an access token in the header of each request--you’re just changing the format of that header.
So why are we making this change? If you have integrated with other OAuth 2.0 resources, you’ll be able to reuse more of that code and/or behavior. This change also enhances the interoperability of our APIs with standard tools and libraries. Plus, following industry standards is always a good thing.