Sunday, May 25, 2014

Spring Social Google 1.0.0 Reaches General Availability

I am happy to announce the release of Spring Social Google 1.0.0.RELEASE ! I would like to thank everyone who contributed by testing and submitting issues and pull requests.

Spring Social Google contains bindings to Google Plus, Google Tasks and Google Drive APIs, and allows you to use any Java client library for any Google API while using Spring Social for authentication and connection management.

Project on GitHub: https://github.com/GabiAxel/spring-social-google

Distribution bundle: https://github.com/GabiAxel/spring-social-google/releases/tag/1.0.0.RELEASE

Reference manual: http://gabiaxel.github.io/spring-social-google-reference/

JavaDoc: http://gabiaxel.github.io/spring-social-google-javadoc/

Example application: https://github.com/GabiAxel/spring-social-google-example

To use with Maven add the following code to your POM:
<dependency>
   <groupId>org.springframework.social</groupId>
   <artifactId>spring-social-google</artifactId>
   <version>1.0.0.RELEASE</version>
</dependency>

Creating a Google Cloud Project and Using it with Spring Social Google


Navigate to https://console.developers.google.com/project

Click "Create Project" and enter a name and ID for the project.

Enter the project and in the left menu select "APIs & Auth". In "APIs" activate the APIs you want to use in the application. The example application uses Google+ API and Tasks API.

In the left menu go to "Credentials" and click "Create new client ID". For "Application Type" choose "Web Application" and for "Authorized Redirect URI" enter "http://localhost:8080/signin/google".

The new set of credentials will be added. Note the "Cliend ID" and "Client Secret" values - we will use them when running the example application.

Get the example application from GitHub:
git clone git://github.com/GabiAxel/spring-social-google-example.git

Enter the application directory and run it with Tomcat (replace CLIENT_ID and CLIENT_SECRET with the values you saw in Google Developers Console):
cd spring-social-google-example
mvn tomcat7:run \
   -Dgoogle.clientId=CLIENT_ID \
   -Dgoogle.clientSecret=CLIENT_SECRET

The application will run at http://localhost:8080/

The Road Ahead


There is no shortage of Google APIs. My current though is to proceed to YouTube and Calendar, but I really want to know what you want, so please submit your requests and issues in the GitHub project.

Enjoy using Spring Social Google!

22 comments:

  1. Hi, I encounter a question described here: http://stackoverflow.com/questions/19499827/how-to-add-google-oauthspring-social-google-to-the-existing-spring-project-usi
    Could you check about it.

    ReplyDelete
  2. Great work Gabriel, Thank you!

    ReplyDelete
  3. Hi Gabriel, Thanks for the great framework. The unfortunate part is I am unable to integrate your code into my existing Spring-MVC project. I am only looking for Google+ login. I tried Scribe but without success. What I require is I call a method in the Controller, which redirects the user to Google page, and then once the user authorizes, I have basic information like Email, Profile Photo in the backend. Next time the user should be able to click it again and Login, if not then the user will be registered with that account. I dont have any main class, and have mostly XML based configuration. Your project is vast to extract specifically what I want and use, pheraps you can help me filter out to what I need. Thanks a lot. Please feel free to email me at kernelfreak[at]gmail.com. Thanks.

    ReplyDelete
  4. If all you need is Google+ sign in, I recommend doing it like so: https://developers.google.com/identity/sign-in/web/

    Spring Social Google and similar libraries are suitable when you need to work with the Google APIs on the server side.

    ReplyDelete
    Replies
    1. Is there any way I can do this in Java, I might require some API's in future. Thanks.

      Delete
    2. Then you should refer to the official Spring Social documentation. Though it doesn't contain examples with Google, you should get the idea. Also take a look at the example application with Google here: https://github.com/GabiAxel/spring-social-google-example

      Delete
  5. how to share messages in google plus using spring social?

    ReplyDelete
  6. When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. smm panels list

    ReplyDelete
  7. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks first reseller panel

    ReplyDelete
  8. Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks smm panel

    ReplyDelete
  9. Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. im academy trading reviews

    ReplyDelete
  10. Use a professional headshot for the photo. Get a pal with a good camera or choose professional headshot. People viewing your profile can make an instantaneous decision on the basis of the quality and professionalism of one's photo. Your investment funny, silly shots. Don't think you'll need a photo? Think again! People will not trust you and your effectiveness is going to be cut to a portion you're your profile doesn't add a photograph. Kennected LinkedIn Reviews

    ReplyDelete
  11. You delivered such an impressive piece to read, giving every subject enlightenment for us to gain information. Thanks for sharing such information with us due to which my several concepts have been cleared. Mark Lutchman

    ReplyDelete
  12. This is such a great resource that you are providing and you give it away for free. stephen twomey

    ReplyDelete
  13. A very delightful article that you have shared here. Your blog is a valuable and engaging article for us, and also I will share it with my companions who need this info. Thankful to you for sharing an article like this. best smm panel

    ReplyDelete
  14. You have given great content here. I am glad to discover this post as I found lots of valuable data in your article. Thanks for sharing an article like this.Smm Panel provider

    ReplyDelete
  15. Which is the cheapest SMM panel?
    Apnismm

    World Cheapest SMM Panel

    Apnismm is India's Best & Cheapest SMM panel. Apnismm is the best social media marketing panel for sellers as well as individuals. They are dealing with Tiktok, Facebook, Instagram, Twitter, Youtube, and SoundCloud services. Apnismm is the best cheapest panel in India.

    ReplyDelete
  16. I appreciate your efforts which you have put into this article. This post provides a good idea about buy youtube watchtime Genuinely, it is a useful article to increase our knowledge. Thanks for sharing such articles here. Cheapest SMM Panel For Reseller 

    ReplyDelete
  17. You wrote this post with great care and attention to detail regarding this issue. Your article provided me with useful information about buy youtube subscribers.It's quite beneficial to me as well as others. Thank you for continuing to share this type of information.

    ReplyDelete
  18. How do I get a virtual address?
    There are 5 steps to get a virtual mailing address setup for your business:
    Step 1: Find a virtual office solution.
    Step 2: Choose a physical location for your mailing address.
    Step 3: Pick & customize the services you need.
    Step 4: Purchase the service.
    Step 5: Complete your US Postal Form 1583.
    Visit https://www.straitsvo.com/

    ReplyDelete
  19. Is it legal to have an offshore bank account?
    There's nothing illegal about establishing an offshore account unless you do it with the intent of tax evasion. The Foreign Account Tax Compliance Act (FATCA) requires banks around the world to report balances and any activity of American citizens to the IRS or face fines.
    More Details

    ReplyDelete