简体   繁体   English

带有Google Picasa数据API的java-oauth

[英]java- oauth with google picasa data api

I have a requirement where I want images to be stored/retrieved from a single Google Account (this account has picasa storage). 我有一个要求,我想从一个Google帐户(此帐户具有picasa存储空间)存储/检索图像。 This should be done even if the user who is logged in to my web app, is different from the single google account (which has picasa storage). 即使已登录我的网络应用程序的用户不同于单个Google帐户(具有Picasa存储空间),也应执行此操作。

(I plan to store all images used by this web app in Picasa Storage). (我计划将此Web应用程序使用的所有图像存储在Picasa存储空间中)。

I couldnt find any example/reference for this particular scenario-- the docs talk about regular oauth authentication, where the user who is using the web app, gives permission to the web app to access his picasa images... What I want is, the single stored user (who has the images stored in his picasa account) is authenticated by the web app, even if a different user is logged in to the web app... Now the application can display images from the authenticated user's picasa albums...Can this be implemented? 我找不到针对这种特定情况的任何示例/参考-文档讨论了常规的oauth身份验证,即使用Web应用程序的用户向Web应用程序授予访问其Picasa图像的权限...我想要的是,即使另一个用户登录到该Web应用程序,该单个存储的用户(其图像存储在其picasa帐户中的图像)仍由Web应用程序进行身份验证。现在,该应用程序可以显示来自经过身份验证的用户的picasa相册的图像。 ..可以实施吗? And ideally by using the google data apis client library for Java? 理想情况下,使用Java的Google数据API客户端库?

The answer is provided in Google Documentation of the API- at http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_java.html#ClientLogin API的Google文档提供了答案-http: //code.google.com/apis/picasaweb/docs/2.0/developers_guide_java.html#ClientLogin

The user id and password has to be stored in the application, and irrespective of whichever user is using the application, auth into Picasa will be done for the stored user only. 用户ID和密码必须存储在应用程序中,并且无论使用该应用程序的用户是谁,都仅对存储的用户进行Picasa的身份验证。

This is referred to as Single-user "installed" client authentication in the docs... 在文档中,这称为单用户“已安装”客户端身份验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM