Does google Drive api support 2 legged oauth? - oauth

Now, we have an application with Google Docs Api and 2 legged oauth. However,we want to migrate to Google Drive Api which uses Oauth 2.0.
Can we use 2 legged oauth with Google Drive Api?
Is there any example?

You should use Service Accounts: https://developers.google.com/accounts/docs/OAuth2ServiceAccount

I just started looking into this and if I have any luck I will provide more info.
However, if you are using 2 legged oauth so you can work with google apps domain-wide then there is a published guide. I believe this is what the other answer was talking about.
Blog post explaining domain wide delegation: http://googleappsdeveloper.blogspot.com.es/2012/11/domain-wide-delegation-of-authority-and.html
Guide for the drive API: https://developers.google.com/drive/delegation

Related

Zend Framework 2 and OAuth how to create provider?

I'm looking for a way to secure my own api with OAuth, but all I find is how to create client that connects to Twitter or Facebook. In the ZF2 docs site there is only example how to use ZendOAuth to connect to Twitter service. Is there any tutorial/documentation or anything ?
Which version about Oauth you are looking for ?
Just add one of these modules to create an Oauth provider. Take care! you have to know how oauth works, to integrate into your application.
For oauth 1.0a
https://github.com/bgallagher/BgOauthProvider
For oauth 2.0
https://github.com/php-loep/oauth2-server
see https://stackoverflow.com/a/23302428/389976
Essentially check out Apigility http://www.apigility.org/

Google Translator API OAuth Authentication

Iam developing a multi lingual application and planning to use google translator API. I was wondering if Google Translate API supports OAuth authentication or not, document is available for using key but no information is available regarding OAuth authentication.
Thanks

Is it possible to use Google Apps Marketplace with Oauth2 and OpenID

I have website which uses Oauth2 for communication with Google APIs. And it works fine.
Now i need to make it "Google Marketplace compliant" to be listed there. Googles docs says about Oauth or Federated Login, but it doesn't precised if Oauth2 works too.
Does anyone has experience in such integration? May i keep Oauth2 and add OpenID to work with Marketplace, or i have to rework it for Federated Login?
Thanks!
The answer is NO as of July 9, 2012. Google is in the process of adding OAuth2 for Apps Marketplace https://developers.google.com/identity-toolkit/v1/marketplace#oauth2
When you list your app in the marketplace, you will get a consumer key and secret which you can use for 2-Legged OAUTH for every google apps domain that installed your app. So the answer is YES.

Single sign on for google api's using Scribe?

Is there anyway to retrieve the Google Oauth refresh_token using Scribe?
I am building an app that requires several scopes mixed between java Gdata and Google api java client libraries -- and I am looking for a Single Sign On (SSO) when a user of my app signs in. However because of the state of current Google Apps API's requiring Oauth 1 or Oauth 2 depending on which library / scope you need, I'm a bit stuck.
Oauth 1 (java gdata e.g. analytics data export scope) - requires the
access_token secret
Oauth 2 (google api java client e.g. analytics calendar scope) -
require a refresh token, which is not avail currently in a Scribe OAuth 1 call
Any tips / advice? Anyone managing this with a single sign on?
Sorry scribe does not support (at the time of this writing) Google's OAuth 2.0 Apis.
It shouldn't be too hard to implement using FacebookApi as a guide. Cheers!
Scribe has added support for Google OAuth API. I used scribe 1.2.2 and it worked just fine for me.

Google oauth Sign in using your Google account

If I go to the "Test your AuthSub registration" page, it asks if my website can access my calendar. But what I want is only to "Sign in using your Google account".
How do I tell Google that I don't want to access someone's calendar, but only want them to sign in using their Google account?
You should not be looking into oAuth, it is an authentication protocol while exchanging data with google services using APIs, for signing in using google account you should look into "Federated Login for Google Account Users"
Please read the following article.
http://code.google.com/apis/accounts/docs/OpenID.html
While labeled as 'experimental', Google's OAuth2 implementation is a simpler, approach to API authentication that is particularly friendly to javascript clients (while also easier to use by server-side deployments): http://code.google.com/apis/accounts/docs/OAuth2.html
As OpenID 2.0 is depreciated, you should be looking at this link (OAuth 2.0 for Login): https://developers.google.com/accounts/docs/OAuth2Login
Hope it helps.

Resources