Google App Engine - built-in / iframe input

Is there a way to configure the Google App Engine so that the login page is displayed both in a line and in an iframe, instead of requiring a link .

I wish it were as simple as

<iframe src="{{ login_url }}"> <!-- no iframes --> <a href="{{login_url}}">Log in</a> </iframe> 

However, this seems to be an undocumented way of logging in users, and I'm not sure if this can be done.

I would be grateful for any thoughts

Thanks for reading.

Brian

+4
source share
2 answers

This is not a good idea. By showing the google registration form in your domain, how do your users know that this is legal? By redirecting users to a page in a Google domain, you reduce confusion.

In addition, you can review the Terms before. I would not be surprised if Google does not specifically mention this. This is how to teach your users to leave Google login information when prompted.

The groups also had a few posts that discussed this; Nick and many other users answered this question with similar comments.

+4
source

I just tried to do what you offer here, except that I do not have a hyperlink inside the iFrame. I want the Google authentication page to appear in the iFrame on top of my page, rather than being redirected to the authentication page, and then coming back to my page. I also add a query string to login_url, and my main request then returns a simple “Welcome” message, not the main page of the application.

It works great in the sandbox, but when deployed to GAE it doesn't work. The page returned by Google login_url is not displayed in the iFrame. The console message "Failed to display the document because the display is prohibited by X-Frame-Options." I thought of possible workarounds, but Google clearly does not want the login page to display in this way. I am disappointed because my application uses HttpRequests heavily, so the main page is never updated otherwise, but I am still very pleased with GAE.

0
source

All Articles