# Configure OAuth Authentication

To configure the connector to authenticate with Twitter, use the following procedure.

To configure OAuth authentication with Twitter

1. Go to the Twitter web site and create an application to represent the connector. Twitter will provide an application key and an application secret.
2. Open the folder where you installed the connector.
3. Open the file `oauth_tool.cfg` in a text editor.

4. In the `[Default]` section, specify any SSL or proxy settings necessary to connect to Twitter:

   `SSLMethod` | The version of SSL/TLS to use.
   `ProxyHost` | The host name or IP address of the proxy server that the connector must use.
   `ProxyPort` | The port of the proxy server that the connector must use.

   For example:

       SSLMethod=SSLV23
       ProxyHost=10.0.0.1
       ProxyPort=8080

5. In the `[OAuthTool]` section, set the following parameters:

   `AppKey` | The application key that was provided when you set up an application to represent the connector.
   `AppSecret` | The application secret that was provided when you set up an application to represent the connector.

   Do not modify the other parameters in this section.

6. Open a command-line window and run `oauth_tool.exe`.

   Your default web browser opens to the Twitter web site, which asks you to authorize the application to access Twitter.

7. Authorize the application by entering your credentials.

   The Twitter Web site provides an authorization code.

8. Type the authorization code into the command-line window where the OAuth tool is running and press ENTER.

   The OAuth tool creates a file named `oauth.cfg`, which contains the parameters that the connector requires to authenticate with Twitter. You can include these parameters in the connector configuration file as follows (see Include an External Configuration File):

       [MyTask] < "oauth.cfg" [OAUTH]

   The OAuth tool also prints the parameters it has set to the command-line window.

9. You can now configure a task to retrieve data from Twitter. See Retrieve Information from a Twitter Stream, Retrieve Information from a Twitter Search, or Retrieve Information from a User's Timeline.

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm