APIMatic SDKs Now Support OAuth 2.0

APIMatic, a developer experience platform that generates SDKs, announced the SDKs generated through its platform will now support OAuth 2.0. Prior to this announcement, OAuth 2.0 support within APIMatic was limited to authentication token headers within requests. APIMatic mentioned that full OAuth 2.0 support has been on the roadmap for quite some time as it is quickly becoming the best practice for authorizing shared user data, especially among API providers.

With an exception of the Go SDK, which is coming soon, APIMatic has added OAuth 2.0 to all of its supported platforms. This is the company's first iteration of full OAuth 2.0 support. The company expects to build on this first version of support with continued development as more API providers utilize OAuth 2.0. Stay tuned for the Go release, and further announcements.

To get started, users need make sure their APIs support OAuth 2.0. Next, update authentication settings within the API description. Once completed, the required configuration parameters (e.g. Redirect URL, client redirect, etc.) will be automatically generated in the SDK's configuration file. Once the values are set for the credentials grant, simply call the authorize function. The SDK will fetch the access token, store it in memory, use it for secured endpoints, and refresh when it expires.

APIMatic provided granular details in its blog post announcement. The post addresses token acquisition, token storage, and token refresh. Visit apimatic.io to get started.

Be sure to read the next SDK article: Why ProgrammableWeb Refers to a Javascript API as an SDK

 

Comments (0)