Developers > How to register third-party applications and use OAuth authentication
How to register third-party applications and use OAuth authentication
As detailed in the reference documentation, LikeOrHate
uses OAuth so third-party applications can securely access our data on behalf of other users.
This happens as follows:
- You make a request to LikeOrHate, using OAuth to authenticate (our
libraries support this with a single call to a
function usually called setOAuth).
- The user is redirected to LikeOrHate, where he/she will log in with their password and
grant you access on their behalf.
- You get a HTTP callback to your server with an authorization token. This should be
redirected to another function of our library, called OAuthCallback. At this
point the actual request (for example, "create a thing") is executed and OAuthCallback
returns you the expected data.
To use OAuth, first you need to register your application:
- Login with your username.
- Register or edit your application.
- Use the provided credentials (public and secret token) in your code.
Our libraries support OAuth. See their
documentation to know how to use it.
Gory details
If you know what 3-legged OAuth means, then you might be interested
Back to main developers page