oAuth: Third-party apps

[obsolete]

OAuth Support

Loggly supports OAuth. OAuth is a way for a third-party component to access data of a Loggly user without the Loggly user having to provide a username and password.

Assume the following setup: We have an application which uses the Loggly APIs to access logs stored in Loggly. One way of allowing this application to access your data would be to provide it with your credentials i.e., your username and password. They would store those credentials and could potentially even use them to log into the Loggly interface and look at your setup. This is not what you want.

OAuth does it differently: The application implements OAuth. As a user, you go to your Applications page and allow the application to access your data. There is a key that is negotiated between the application and your user account, which allows the application to query your data. No usernames, no passwords.

Registering a New Application for OAuth

If you are an application developer and you want to use Loggly with OAuth, you have to first register your application. You can do so by logging into your account and then navigating to: Add-Ons. Click on "Register OAuth consumer" and fill in the required fields:

Include a good description for your application. This is what users will see. It will help them decide whether they want to use your application. Also include a link to your application if possible. Once you click “Register”, you'll be given a screen full of information:

 

The important pieces are the consumer key and the consumer secret. You will need to embed these two keys in your application. Also note the URLs that your application needs to use for the three different pieces: request, access, and authorization.

Using an Application that uses OAuth

If you start using an application that uses OAuth to access data in Loggly, you'll get a confirmation screen to allow that application to access your logs. Once you grant access, you'll then see the newly allowed application in your Add-Ons tab, under Access Tokens as follows:

Top