Git Product home page Git Product logo

gplus-connector's Introduction

Product: Integration tests for WSO2 ESB Google Plus Connector

Pre-requisites:

  • Maven 3.x
  • Java 1.6 or above
  • A google account for the Google Plus API

Tested Platform:

  • Mac OSX 10.9.4 and Ubuntu 14.04 64bit
  • WSO2 ESB 4.8.1

STEPS:

  1. Make sure the ESB 4.8.1 zip file with latest patches available at {basedir}/repository folder. If you want to use another location edit the pom.xml as follows.

       <carbon.zip>
         ${basedir}/../test/wso2esb-${esb.version}.zip
       </carbon.zip>
    
  2. Copy GooglePlus connector zip file (GooglePlusConnector.zip) to the location "Integration_Test/products/esb/4.8.1/modules/integration/connectors/repository/"

  3. Make sure the google plus test suite is enabled (as given below) and all other test suites are commented in the following file - "{basedir}/src/test/resources/testng.xml"

  4. This section describes how to obtain an access token from the google oauth.

    i) Login to your google developer account, then navigate to url: https://console.developers.google.com/project and create new project.

    ii) Select select the new project and navigate to "APIs and auth" from the left panel. In the APIs page enable Google Plus API from the Google API list.

    iii)Select "credentials" from the left panel and in that page click "create a new client ID". From the dialog box select "Web Application" and click "create client ID".

    iv) You can see the client ID, client secret and redirect URIs which will be used when obtaining the access token.

    v) Use the guide at the url: https://developers.google.com/accounts/docs/OAuth2WebServer and follow the instructions in "offline access" and "using a refresh token" in order to get a refresh token.

    vi) Go to {basedir}/src/test/resources/artifacts/ESB/connector.config/GooglePlus.properties and add following lines : clientId - client ID of the google tasks app clientSecret - client secret of the google tasks app refreshToken - refresh token obtained from google oauth 2.0

    vii)getAccessToken.xml configuration will obtain the temporary access token using these property values.

  5. From the base directory run the following command. $ mvn clean install

Notes: More on google oauth: https://developers.google.com/accounts/docs/OAuth2

gplus-connector's People

Contributors

madusankapremaratne avatar

Watchers

 avatar  avatar

Forkers

tharindu1st

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.