Java library for authentication and importing contacts - java

I need to develop following functionality for my JSF web application:
Authenticating users through external providers like Gmail, Hotmail, Yahoo, Twitter, Facebook, LinkedIn, Foursquare, MySpace
Importing their contacts from them (Gmail, Yahoo)
I am planning to use SocialAuth Java library for the same, can some one how has used them tell me about your experience with it?
If someone know some better approach for the same, please let me know!

socialauth is your best bet! it supports almost all providers and supports a large variety of java frameworks. Even if you are not using Struts or Spring, you can use the libraries and integrate it with any framework you want.
They also have a very good documentation and examples online:
http://code.google.com/p/socialauth/
Also Check this previous Question :
Taking contact list from hotmail gmail yahoo in java?

Related

Integrating 3rd party API with jhipster based webapp

I am trying to build a simple web app using jHipster. Currently I am trying to build a simple stock entity that will enable a user to input the stock name and the entity should generate a listing of that stock with open, high, low and close data. I am unable to figure out how to integrate the web app with a third party API that supplies the data. I could not find any documentation regarding this issue online. Thank you.
I found this tutorial on implementing API's that might help.
What you need to do is create an HTTP client that can access your API.
I'm not too familiar with jHipster but finding the proper library to import seems like a good first step. Good luck.
Source:
https://zapier.com/learn/apis/chapter-8-implementation/
If you aren't sure which language to choose, a great way to narrow down the selection can be to find an API you want to implement and see if the company provides a client library. A library is code that the API owner publishes that already implements the client side of their API. Sometimes the library will be individually available for download or it will be bundled in an SDK (Software Development Kit). Using a library saves you time because instead of reading the API documentation and forming raw HTTP requests, you can simply copy and paste a few lines of code and already have a working client.

Pulling Github teams from user log in

I am trying to find a java library that will give me the ability to pull a user's Github teams based on their log in email. I am creating the backend for a website and would like the user to have the option to pick their teams from a drop down. I have looked through multiple API documentations, including Github's API
but I cannot figure out how to use this in my java code. Does anyone have any good library recommendations for this implementation? Thank you!
I found a GitHub wrapper for the API and implemented this into my code.

Google App Engine - hash password on server

I have recently started to learn about google app engine. I have encountered a problem. How do hash a password on google app engine? Im planning to pass password to the datastore. There I will hash the password and store the hash? Any tips or thoughts?
thx all!
Since you are looking at implementing your own custom login, you can definitely use popular hashing algorithms for the same. You can use the MessageDigest classes for teh same. Alternately, 3rd party libraries also exist, which you could use. E.g. Jasypt library
If you're not sure what you're doing, you're best of relying on a library. Having said that, there are great code samples for password management on the owasp site.
For example, here is a page with code samples on how to manage this correctly and a good explanation of all the element requires. You'll need to adapt the code for storage on appengine, or just use CloudSQL

Client android application for site

I want to write a client application for a site (e.g. to read smth from site, add some comments, likes etc). I haven't got access to site sources and there isn't any API for work with it. So at my Android application I decided to parse this site (it has static pages) using : JSOUP Library
And using this library I'm going to write unofficial, but API for my purposes to work with this site, and then use it in my Android application.
Can somebody tell me, is this good practice or there are better ways to do? Is this good idea at all to parse site in Android device.
As I wrote in comment - in general building your own application on top of the third party www service is not a good idea. If you want to do it anyway you have 2 options:
Use jSoup (or any other html parser if exists) and parse third party content on the device
Set up some middleware server to parse content and serve it in some more convenient way.
The second option has a little advantages - you can fix application without forcing users to update it and probably you'll save a bit of device's bandwidth. Of course disadvantage is that you have to pay for server.
General problem with applications like that is that every single change with layout, skin, server configuration can cause your application to stop working, as well as parsing html needs much more work that just connect to existing API.
More over - publishing your application can cause some legal issues (copyright) and is against Google Play's policy:
Do not post an app where the primary functionality is to: Drive
affiliate traffic to a website or Provide a webview of a website not
owned or administered by you (unless you have permission from the
website owner/administrator to do so)

Creating Magento Site's Native Android Application

I have the following questions which I have researched a lot on Google as well as in SO but found nothing::
I have to create a Native Android Application of a Magento based Site, and I have to use the same database of Magento Site. Now, I have found that we can't Access the PHP files of the Magento project as the access is denied. So how to call a Magento Login Function from the Android Client?
I have come to know that we have to call the function through using XML-Connect file in Magento. Please any one can give me a Example how to call that file and how?
Last Parsing. Which parser would be more handy? (DOM, SAX, SIMPLE XML Serialization parser?)
How to manage the Sessions with the Magento Store So that the user can add to cart items and could do Online Transaction.
Anyone who has worked on Magento Site's App Development provide some direction to move further. I am totally lost and getting nothing from the Online Research.
Any help would be highly Appreciated.
And Regards.
I've not worked with Magento site. But I've worked with similar websites to connect to the mobile applications.
Short Answer: XML-Connect is the best way to minimize your work. And its easy to use API than connecting to the database using php files. For mobile applications, it is always advisable to use a simple xml format, however, in your case, you have to stick to xml-connect's protocol.
For some more information, see this link http://inchoo.net/ecommerce/magento/develop-your-own-magento-mobile-application/

Categories

Resources