I have a project in Google Cloud, with Google Compute Engine APIs activated.
The problem is that the "Compute Engine and App Engine" credential field is completely missing from "Developers Console -> APIs & auth -> Credentials". I have not been able to find any document explaining how to generate it, probably because as I read from unofficial sources, it's done automatically.
Because of this missing credential, I'm stuck at the authentication phase and cannot use the services I need, so, how can I solve this problem?
So, you are looking for credentials which looks like:
CLIENT ID 1234.apps.googleusercontent.com
EMAIL ADDRESS 1234#developer.gserviceaccount.com
Try to go to "Overview" section and look for:
Project ID: bla-bla Project Number: 1234
Where instead of 1234 you should see your project number. If it will not work -- go to appengine.google.com, select your app, Application Settings and try to create Cloud Integration.
I think it is a google cloud product issuse , contact google support .
Related
I'm setting up google analytics super proxy to create some public queries on my google analytics data. I have followed the instructions given in the below link to setup a analytics super proxy in app engine:
https://developers.google.com/analytics/solutions/google-analytics-super-proxy
I have followed the steps specified, enabling access for analytics api and creating a client ID for the super proxy web application deployed in app engine. I updated the required properties in the app.yaml and config.py files in the super proxy and deployed it to app engine.
I'm able to open the admin page of the deployed super proxy, but when I try to authorize access, I get the an error saying 'invalid_client' (although the client id seems to match with the one I created in developer console):
I'm unable to figure out what has gone wrong, or if I've missed something? Can you please help?
Regards,
Anand
Go to the Dev Console -> Your Project -> APIs & auth -> Consent screen. Make sure all the non optional fields are filed in (specifically in your case PRODUCT NAME).
I believe there is an undocumented Google API available to create and manage Google Cloud Console (and App Engine) projects on behalf of third party users.
Does anyone know how to use it?
I think older versions of the Google Eclipse Plugin obtained an OAuth2 token in the (undocumented) scope https://www.googleapis.com/auth/appengine.admin, and this allowed it to generate a Cloud Console project on your behalf. The latest version doesn't seem to do this. App Engine's own appcfg.py also uses this scope, but doesn't seem to do much more than deploy the code - I'm looking to change core settings for the project, such as Name, Redirect URLs, and Web Origins.
Any information would be appreciated.
I maintain a WordPress plugin providing secure Google Apps Login for end users, and currently have to give detailed instructions to admins for creating a new Cloud Console project manually, and entering settings such as Redirect URL. Ideally, I would create a simple on-line service to do all of this for them.
Thank you!
It is possible to programmatically create a new Developer Console project on behalf of a Google Account (yes, you read that right). You do so in a very roundabout way:
Request the https://www.googleapis.com/auth/drive.scripts scope from the user (standard OAuth 2.0 flow).
Use the Drive API's drive.insert method to create a new file with a mimetype of application/vnd.google-apps.script.
Somehow try to get the project ID, maybe by uploading some Apps Script code? This is the part that I was never able to figure out.
A little known fact is that every Google Apps Script project has a hidden Developer Console project associated with it. This project is not shown in the list of projects, but it does exist. It is created automatically when the user starts a new Apps Script project, and the drive.insert method is enough to cause this to happen.
How do you get to the hidden project? Well, the only way I know of is to open the Apps Script project from the Drive website, open the "Resources > Advanced Google Services" dialog, and click the link to the Developer Console. You'll find the project ID in the URL.
Aside from not being shown in your list of projects and not being able to use App Engine, this is a normal Developer Console project. You can add additional OAuth client credentials, service accounts, Compute Engine instances, etc. And of course once you have a project ID, all of the various management APIs will work: creating new virtual machines, making use of a service account's impersonation ability, etc.
I followed the steps detailed here to use a custom domain with google app engine.
I'm the admin of the Google Apps account
I'm the owner of the Google App Engine account
I've added the domain to my Google Apps account through my App Engine account
I see my App Engine app in my Google Apps account
I set the CNAME "test" to point to ghs.googlehosted.com
I added the web address under my Google Apps account and it says "Your users can access my-app-id at: test.mydomain.com
Now when I go to http://test.mydomain.com, it redirects to https://test.mydomain.com and I get an SSL connection error (Unable to make a secure connection to the server.)
I called Google Apps customer support because I have a paid business account, but the customer service guy said that this falls under App Engine support and he was not trained in this issue.
Help!
If you've done everything correctly, you should be able to access your site at http://test.mydomain.com. It sounds from the error you're getting that you're attempting to access it at https://test.mydomain.com (https as opposed to http).
If you want to access your app over SSL at your custom domain, you have more setup to do, as documented here: SSL for a Custom Domain. The steps necessary are many and subject to change; that link is the official source of current information on the matter.
Update: From your updated information, it sounds like you may have secure: always set in your app.yaml, or the Java-configuration equivalent of this setting. It would be helpful if you posted your configuration file.
Also note that it takes several minutes for Google to add a certificate on a domain you recently imported (it may require time for DNS configuration to spread). I personally didn't need to add any secure: configuration, it just worked after some time.
I have a Google Apps domain at www.openstv.org that I use for email and a website.
I recently created a Google App Engine app at stv.appspot.com and it can also be accessed at opal.openstv.org.
I would like to:
Use www.opavote.org for my Google App Engine app instead of opal.openstv.org, and
Have opavote.org be a domain alias of openstv.org so that I don't have to maintain two Google Apps domains.
Two stackoverflow questions suggest that this is possible:
Google App Engine on Google Apps Domain
Google App Engine and domain name
But other reputable information suggests that it is not possible: Issue 638
I've tried to do this, but I can't get it to work. Is there an explanation for this apparent contradiction?
EDIT: Adding what I tried in response to Nick's comment.
From App Engine Dashboard:
Go to Application Settings
Click Domain Setup
Enter opavote.org -> "Sorry, you've reached a login page for a domain that isn't using Google Apps. Please check the web address and try again."
Click back and enter openstv.org -> Takes me to Google Apps for Openstv.org
From Google Apps Dashboard for OpenSTV.org -> stv settings (my GAE app) -> Click add new URL
I'm allowed to enter a subdomain of openstv.org (e.g., opal.openstv.org) but I am not allowed to use the opavote.org domain (there is no dropdown menu for the domain).
Go to Google Apps -> Domain Settings -> Domain Names and see that opavote.org is listed as a domain alias and is verified in two ways (DNS record and uploading file). No other options here.
If you've added 'opavote.org' as an alias, it should be showing up in the list - this sounds like a bug with Apps. Have you tried removing it and re-adding it? If that doesn't work, you may need to file an issue with the Apps team. It's definitely possible to do this - I'm running apps off alias domains myself.
How do I setup Account Registration, Login, etc in Grails when developing for the Google App Engine? Normally I would use the Acegi plugin but I've read that it doesn't work with Google App Engine.
For reference, I'm using the Grails app-engine and gorm-jpa plugins.
Google App Engine allows you to manage users through their Google Accounts Java API. The page provides example codes which you can easily implement with Groovy.
Hope it helps.
You should take a look at this patch: http://jira.codehaus.org/browse/GRAILSPLUGINS-1233. I haven't used it yet but might be what you are after.
In my opinion, it is essential to create custom authentication instead of using Google Account API to create any viable application run on GAE.
So, I created my own solution to tackle this problem which you may interested to have a look at URL:
http://grailsfuse.vobject.com/
(You will hit http 500 error for first request, please wait for 30 seconds and refresh)
The missing part is the self-registration page and remember me feature. Please contact us (hyperlink located below the page of URL above) if you are still interested.
Wish to heard from you soon!