Adding a domain name to Google App Engine doesn't work - google-app-engine

I've been trying to connect a domain name that I own to a GAE application. I've tried it several times, from several accounts and browsers without success - please help.
The last experiment was to create a fresh GAE instance with a Google Apps for Business account (all of them with Billing enabled).
After I press "Add Domain"
I see the "Choose Account" screen. But upon selecting my account (which IS a billed Google Apps account, and I also tried with several free accounts), the screen just reloads. It doesn't go any further.
Would appreciate any hints

I always do it from Google Apps rather than from App Engine, like this:
Log in to your Google Apps Control Panel (admin.google.com)
Click "App Engine Apps" (if its not there, look under "More Controls")
Click the "Add Services" button
Under "Other Services", enter your App ID in the "Enter App ID" box
Accept the agreement
You should now be on the Settings page. From here, under "Web address", click "Add new URL", and enter the subdomain you want to access the app under, and select which domain (if you have more than one).
Click Add
You will need to configure the CNAME records as usual for whatever subdomain you entered
The above instructions are for the new style admin panel, but should be similar for the old style panel if you are still on that.

Related

Google Cloud API: Can't create domain mapping with App Engine service account

I'm trying to use the googleapiclient Python SDK to create a domain mapping for my App Engine app. I'm using the "App Engine default service account" to authenticate, which works (I can get the list of domain mappings). However, when I try to create a mapping, I get the following error:
Caller is not authorized to administer the domain 'abc.[mydomain]'. If you own 'abc.[mydomain]', you can obtain authorization by verifying ownership of the domain, or any of its parent domains, via the Webmaster Central portal: https://www.google.com/webmasters/verification/verification?domain=abc.[mydomain]. We recommend verifying ownership of the largest scope you wish to use with subdomains (eg. verify 'example.com' if you wish to map 'subdomain.example.com').
The same call works in the API Explorer without any issues.
I tried giving the service account the Owner role in the IAM console, to no avail.
(I haven't tried running it from within App Engine; presumably that works, but I'd really like to be able to test this part of my app locally.)
Thanks to John Hanley for pointing me in the right direction.
Go to the Google Search Console and sign in
Navigate to "Settings" (towards the bottom of the menu)
Select "Users and Permissions"
Click the "more" (three vertical dots) button next to your email address, then "Manage property owners"
Choose your domain from the list
Click "Add an owner" at the bottom of the page

Serve GAE app from a custom domain?

I have a GAE project (myproject.appspot.com) which I'd like to serve from a custom domain (myapp.com).
I have added the custom domain to my Google Apps account for my company (example.com)
On my dashboard I have successfully added my domain. This is confirmed; it says myapp.com - Active
Following Google's instructions, I perform step 3 (click "Add Domain"), which attempts to log me in using my normal admin account:
Problem #1, it won't let me perform this step:
You are trying to access Google Admin of myapp.com but you do not have a valid logged in account for it.
I have successfully performed step 4 (Activate this service), and my app appears under "App Engine Apps" for my company.
This page displays: Web address — Your users can access MYPROJECT at: https://myproject.appspot.com — Add new URL
I then click on "Add new URL", which offers me a chance to select a domain from a pulldown list that includes all the domains I own on this account (i.e. both example.com and myapp.com).
Problem #2, it won't let me perform this step. I choose http://myapp.com and click [Add]. When I do this, I get an alert in a red popup box that says The term 'myapp.com' is not allowed. The single quotes are unescaped and appear as "'"
I can successfully add the URL for my company domain (example.com) just fine. But it throws an error/alert if I select myapp.com instead.
Why is Google Apps preventing me from using this domain? I clearly own it, and it appears on
the pulldown menu. Why does it say "the term" is not allowed, as if it's a typo? Is this a bug in parsing the unescaped quote characters?
I found a great (and very obscure) solution.
First of all, Google doesn't tell you this, but the custom domain cannot be a secondary domain on your Google Apps account. Only the primary domain can be selected for "Add new URL."
There are two solutions. One is to add the second domain (myapp.com) to your Google Apps account as a domain alias for the primary (example.com), not a secondary domain. This may not be acceptable for many users, since it means you cannot use myapp.com to deliver different content from example.com.
The second solution is to create an entirely independent, separate Google Apps account, and make your domain (myapp.com) a primary domain for that account. This too may not be acceptable for many users, since you may not feel like paying for a Google Apps account (minimum of $50 per user per year). However, there is a very cool way to get a Google Apps account for free.
You can create an independent Google Apps account with exactly 1 user, and then delete Google Apps for that user. This sounds weird, but stay with me. The superuser account remains, so you can administer the domain and the App Engine app. What you give up are the paid services: gmail,docs,calendar, etc. for that user, which means you're not obliged to pay the $50/year.
Here's the recipe. You will need:
a) a Google User account (e.g. joe#myapp.com created at http://gmail.com)
b) an App Engine account (e.g. http://appengine.google.com)
c) a Google Apps account (e.g. http://admin.google.com/myapp.com)
Create your Google Apps account, you will get a free 30-day trial.
Make sure your user (a) is an owner of the app engine project (b).
Make sure you add your app engine project (b) to your Apps account (c).
Under "Admin Console / More controls / App Engine Apps" ("add services", click icon in upper right corner)
Here's where you delete the paid services and keep the Apps account for free:
In the admin console, choose Company Profile / Profile.
Scroll all the way down to Account Deletion. Look for the text "One or more subscriptions are still active. Please cancel these subscriptions "
Click "subscriptions".
Click "Google Apps".
Click "Cancel Google Apps" (It's the ⃠ icon on the extreme right side of page)
This will delete the paid services (gmail,docs,cal, etc.) so you will no longer have access to any of those. Gmail will not handle any email sent to joe#myapp.com. You will need to set up the MX records for myapp.com to point to some other service if you want to enable email for the myapp.com domain. But you will have the myapp.com domain associated with your Apps account and with your App Engine app, for free, and you will be able to log in as joe#myapp.com to administer them both.
At some point, if you change your mind and decide you want Gmail for your users, you are always welcome to add the Google Apps service back on, and of course purchase licenses for $50/user/year.
You need to add the GAE app from your Google Apps for Domain account. There is a form where you can add an appengine app to your Google Apps account, but it's not in your GAE account, it's in your Google Apps account.

how to add google appengine app to non admin users in my domain?

I am the admin of the google account, say, mycompany.com. Employees have their email and a google account like joe#mycompany.com which give them access to docs, ... under this id.
I would like to add AppEngine as one of the apps they could use, so that every one can create one or more applications. In the dashboard where I see the list of the 7 apps they have access to( gmail, drive, ...) I don't find how to add appengine.
I can however create an appengine app under admin, but I would like to give the freedom to everyone to do it with their account. Is that possible ?
I did some research and found answers about other things. I am not looking to map myapp.mycompany.com to myapp.appspot.com, I managed to do that
Using the new Admin Console home page you should:
Click "More Controls" which can be found towards the bottom of the screen
Select "Other Google Services"
Locate and click on "Google App Engine Admin Console"
Click on the drop down box under the Appengine logo and select "ON for everyone"
This should allow all users to use the Google Appengine Admin Console and create apps.

Login loop when adding a custom domain for appengine

Chrome, regular App Engine app (not restricted to Google Apps domain).
In application management:
Open "Application Settings".
Click "Add Domain".
Input a domain into "Domain Name" and click "Add Domain".
Redirects to page with URL https://accounts.google.com/AccountChooser?service=CPanel&continue=https%3A%2F%2Fadmin.google.com%2F###MY_DOMAIN###%2FAddAppEngineService%3FappId%3D###MY_APP_ID###&hl=en
where ###MY_DOMAIN### and ###MY_APP_ID### are populated correctly.
There I see my account under "Select and account" which I can click.
Click account.
It opens the same Account Chooser page with slightly different URL, with auth parameter in continue url param.
Clicking again on my account just changes the auth.
That ###MY_DOMAIN### may or may not be registered with Google Apps (tried on third-level domains with different second-level domain part). Account may or may not be owner of Google Apps that are installed on that domain (added different Google accounts to app owners and tried from both).
UPD: there's already issue filed 2 months ago https://code.google.com/p/googleappengine/issues/detail?id=9779
You should be adding second-level domain, not third-level. And that second-level domain should be registered with Google Apps. Then, after adding the second-level domain you'll be able to configure which third-level domains maps to which App Engine applications in Apps settings.

Adding a second developer on Google App Engine

I'm having an issue adding a collaborator on an App Engine project.
The collaborator gets an email from App Engine, clicks the link, and is presented with an accept button. Pressing accept seems to do nothing, and the collaborator is still listed as "pending" in App Engine's permissions.
Make sure the person you are inviting is logged in under the proper Google Account. Sometimes you can end up logged into your personal Gmail when your browser hits the Accept URL, even though you clicked the link from a different email address (for instance, a Google Apps address for a new employee).

Resources