Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-19-2010, 09:25 AM
Junior Member
 
Posts: 6
Default Newbie: Best API to connect a zimlet to a remote service

Hi,
I would like to write a zimlet that talks to a remote service (J2EE/Spring) and am wondering which is the best protocol to use to develop a simple API that the zimlet can use to communicate with this service (Soap/Rest/Ajax?).

The service would require authentication from the zimlet. I am wondering which is the best way to provide this if for example I use a SOAP API. Do I need to write a separate zimlet to login to the remote service? If so, can this login be stored as a cookie using zimlets so that the user doesn't need to keep entering their credentials?

Later I would like to re-use this api for iPhones.

Many thanks ,
Jonathan.

Last edited by jodonova; 03-19-2010 at 09:38 AM..
Reply With Quote
  #2 (permalink)  
Old 03-23-2010, 09:58 AM
Intermediate Member
 
Posts: 15
Default

Build a RESTful web service and protect it with OAuth. The zimlet will need to store the consumer, access and request tokens, but it never needs users' usernames and passwords. OAuth can also work for mobile devices and third party web sites.

Look at the flickr and the social zimlets (esp. the twitter support) - both use OAuth and RESTful APIs.

Apps really need to stop asking users for their credentials to access other apps.
Reply With Quote
  #3 (permalink)  
Old 03-23-2010, 10:05 AM
Junior Member
 
Posts: 6
Smile

Thanks for that advise scotty - I will check that all out,
Jonathan
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.