google-apps-marketplace

Google Marketplace App / OAuth2 - Programmatically Delegate Domain-Wide Authorization

允我心安 提交于 2019-12-05 07:50:43
问题 Context I'm currently migrating an OAuth 1.0/OpenId based app over to use OAuth 2.0. The app is a Google App Engine app built in Java and will be in the new apps marketplace 2.0. I've got the basic OAuth 2.0 flow working fine for individual users but am having trouble setting up the service account for my scenario below. Issue The flow I'm trying to enable is as follows: Domain admin installs app from apps marketplace Domain admin grants requested scopes (e.g. admin sdk, profile, email, etc)

Google Apps Admin API: need to specify account user for service account?

Deadly 提交于 2019-12-05 06:33:36
问题 I'm creating a Marketplace App that should be able to read all the users of a domain. I request access to these scopes: https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/admin.directory.user.readonly Then when the 'Universal Navigation Extension' is accessed this happens: Credential credential = new GoogleCredential.Builder() .setTransport(httpTransport) .setJsonFactory(jsonFactory) .setServiceAccountId(SERVICE_MAIL

Can not post Google Apps Marketplace Listing Review Request for API Project

家住魔仙堡 提交于 2019-12-05 04:51:26
My requirement is to enable OAuth 2.0 for an existing OAuth 1.0 application in Google Apps Marketplace . I have created new Google project in the console and created a listing for it. And now I need to submit Google Apps Marketplace Listing Review Request . As it is an API project that uses only Google Apps Marketplace SDK so I can not make a review request for my app listing. As I don't have any APIs listed in the required section the request submission failed. The app and listing is tested installing to a test domain owned by the owner(creator) of the app and project. For app publishing used

How to get a CustomerId (or other primary key) for a Google Apps account?

主宰稳场 提交于 2019-12-05 02:43:24
问题 When a user logs on to our Marketplace V2 app, we need to know which Google Apps account the user belongs to. The id_token contains the 'hd' parameter (the domain name), but that's not enough, as a Google Apps account can have multiple domains. CustomerId seems like a good primary key to match users to the correct Google Apps account. The problem is, it doesn't seem to be included in the id_token. Is there some way to figure out what the CustomerId of a user is. The Admin SDK would be one

Token error in Google Apps Marketplace application

﹥>﹥吖頭↗ 提交于 2019-12-04 20:50:01
We have a Google Apps Marketplace app which is deployed on App Engine, and uses the gdata APIs and as of a 3 days ago (20 of June) we started getting this error in the logs: Unauthorized - Server responded with: 401, <HTML> <HEAD> <TITLE>Token invalid - Target is disabled.</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Token invalid - Target is disabled.</H1> <H2>Error 401</H2> </BODY> </HTML> This is the piece of code that raises the error: two_legged_oauth_token = gdata.gauth.TwoLeggedOAuthHmacToken(CONSUMER_KEY, CONSUMER_SECRET, admin_email) # Email Settings API client email

“401 Unauthorized” when using UpgradableApp API

扶醉桌前 提交于 2019-12-04 19:34:17
We're working on our migration tool to bring existing GAMv1 users over to GAMv2, and we're getting a 401 Unauthorized, reporting that our consumer key is invalid. We’re using Google’s APIClient ruby library, found here: https://github.com/google/google-api-ruby-client/ I’m pretty certain that we’re forwarding the same set of credentials identified in https://developers.google.com/apps-marketplace/v1migratev2 , and that we’re specifying two legged OAuth 1.0 to the API. The code we’re using is below, stripped to just the authorization bits: @client = Google::APIClient.new( :authorization => :two

Using Spreadsheet API OAuth2 with Certificate Authentication

邮差的信 提交于 2019-12-04 18:21:45
I am trying to use Gdata Spreadsheet API with OAuth2. Using OAuth2.0 ClientID works with OAuth2WebServerFlow on a domain, But using Service Accounts / Certificate causes a 400 BAD Request The scopes used are https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/admin.directory.group.readonly https://www.googleapis.com/auth/admin.directory.user.readonly https://docs.google.com/feeds/ https://spreadsheets.google.com/feeds Here is the code that I am using SUCCEEDS : OAuth2.0 flow = OAuth2WebServerFlow(client_id=CLIENT_ID,

UpgradeableApp API keeps giving “Invalid OAuth consumer key”

别来无恙 提交于 2019-12-04 13:47:05
Given the following ruby code: consumer = OAuth::Consumer.new(consumer_key, consumer_secret, { site: "https://www.googleapis.com" }) resp = consumer.request(:put, "/appsmarket/v2/upgradableApp/#{listingId}/#{cwsId}/#{domain}") puts resp.code+"\n" puts resp.body the UpgradeableApp API keeps giving "Invalid OAuth consumer key" error. The consumer key (in the format XXXXXXXXXXXX.apps.googleusercontent.com) was copied directly from the legacy marketplace listing as described in the docs. I've: verified the system time is correct and synchronized via ntp. tried including xoauth_requestor_id tried

Gmail contextual gadget doesn't appear after GAM SDK Test install

流过昼夜 提交于 2019-12-04 13:35:57
I cannot manage to see a contextual gadget in Gmail after Test Install Flow in Google Apps Marketplace SDK. These are the steps I took to create the project, logged as a domain administrator: create Google Apps console project create OAuth2 client enable GAM SDK configure the SDK page with COB extension: Extractor Url: google.com:HelloWorld GadgetUrl: URL of gadget spec Extractor param name: Test Extractor param value: .* Scopes: Mail - Subject Line, Mail - Message Body I didn't add any additional Oauth2 scopes than the userinfo.email and userinfo.profile that are already there, and the

Unable to upload screenshot image to Google Marketplace

别来无恙 提交于 2019-12-04 09:14:55
In Google Cloud Platform I have enabled the Apps Marketplace SDK to publish a sheets-on to Marketplace. In APIs & Services > Apps Marketplace SDK > Publish I am unable to upload a screenshot. I keep getting Not saved . see here: I am using the correct size screenshot and have tried many different sizes and image types. ex. 640x400, 1280x800 all the recommended sizes. I have used png and jpg. I can't click the publish button until a screenshot is uploaded. This is weird because I was able to upload an image for application banner without issue (as shown in the image above). Any ideas why I am