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:

  1. You make a request to LikeOrHate, using OAuth to authenticate (our libraries support this with a single call to a function usually called setOAuth).
  2. The user is redirected to LikeOrHate, where he/she will log in with their password and grant you access on their behalf.
  3. 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:

  1. Login with your username.
  2. Register or edit your application.
  3. 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

 
All Content in this site is the sole responsibility of the person from whom such Content originated. See our Terms of service