Netlify has an extensive developer API that enables anybody to build integrations and services on top of our service.
Since Netlify is an OAuth2 provider, you can use this API to build services that Netlify users can authorize to operate on their behalf, whether they want you to publish projects, add snippets to their sites, install Webhooks or the like.
The typical OAuth2 flow works like this:
While the full OAuth2 spec is long and complex, it’s actually a very simple flow to implement.
I’ve created a sample Netlify integration project that shows how to do this kind of integration.
This example demonstrates the “Implicit Grant Flow” where the main security mechanism is the Redirect URI on file for the OAuth2 Application. This means it can be used from a pure single page app without any server-side code.
If your app is already using some server-side code, you might want to use the very similar “Authorization Code Grant” to make sure the final access token ends up stored server-side without any exposure to the browser.
You can play with the example here: https://netlify-oauth-example.netlify.com/ and read through the code in the example/app.js file.
We love seeing what people build on top of our platform, and we’re always happy to help any integrator get started, so if you have questions or are working on a project, don’t hesitate to contact us!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4