What is OAuth and why is it used by AWeber's API?

At AWeber we take data protection seriously, but we also want to make it easy for developers to create cool integrations for our customers to use. In order to achieve both these goals we provide a public API but require developers to use a standard called OAuth to protect the data our API can access.

 

Why OAuth?

Since AWeber’s API contains information about lists and subscribers within an account we need strong protection for that data. We chose OAuth because it provides a way for developers to access data while providing both authentication and authorization. In addition, the developer never needs to know the customer’s AWeber login as OAuth uses secure tokens that work in place of the password.

One of the best benefits of OAuth is that it is very easy for a customer to add new integrations -- they simply click a link, sign in, and the rest is magic. They never need a developer account or have to worry about any of the tokens.

 

How does OAuth work?

AWeber’s API currently uses OAuth version 1.0a in a process called “three-legged OAuth”. It’s called three-legged because there are three steps the developer completes before they can access data in an AWeber account. If you want to see a working example with more detail and code examples check out our API documentation.

The general idea is that the developer tells AWeber a new customer is connecting, then AWeber asks the customer if it’s okay for the developer to access their account data. If the customer approves, the developer is able to obtain keys that allow them to use the API to access data in the customer’s account. If you’ve ever logged in to a website using a social media service the process should feel pretty similar.

There are some restrictions to the things a developer can access. Some things our API just does not allow a developer to look at, billing details are a good example. Other things we require the developer to add extra permissions for, such as seeing subscribers’ email addresses or sending broadcasts. The extra permissions make it clear to the customer that the developer will be allowed to do those things so the customer can make an informed decision about whether to allow the integration access.

Note: At no point in this process should the customer have to create a developer account. Only the developer needs one.

 

What about OAuth 2?

There is a newer version of OAuth called OAuth 2. This version has the same goal of providing good security for APIs but it is a little easier for developers to use. As a result it’s become more popular than OAuth 1 over the years. While AWeber does not currently support OAuth 2 if that’s something you’d be interested in us adding you can reach out to us at api@aweber.com to let us know!

Have more questions? Submit a request
Powered by Zendesk