Skip to content

Instantly share code, notes, and snippets.

@peter-kolenic
Created May 14, 2015 21:31
Show Gist options
  • Save peter-kolenic/9db326f3c14e06a15586 to your computer and use it in GitHub Desktop.
Save peter-kolenic/9db326f3c14e06a15586 to your computer and use it in GitHub Desktop.
gae-init feredater login stuckness scenario
I want to make facebook login available, and when given an option in Application Settings, i choose
"Authentication Type": "Federated login" - it feels like strict superset of "Google Accounts API"
- https://appengine.google.com/settings:
Authentication Type -> federated login
- not yet enabled API: Identity ID
- incognito window ->
- Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
- no error in logs
- add Identity Toolkit API, shutdown instance:
- incognito window ->
- Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
- no error in logs
- delete Config entity, shutdown instance:
- incognito window ->
- Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
- no error in logs
- deploy empty project, delete Config entity, wake up empty project by request, shutdown instance, deploy gae-init:
- incognito window ->
- Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
- no error in logs
At least here, anybody could think - "OK, i need to make initial configuration, can't find any file to do that, so i look
at Datastore - ta-da, Config entity, i put my Credentials -> Client ID in the Config". It doesn't help, he goes to sleep.
In the morning, after something restarted his instance, it works. He can log in, set admin to True for his User in Datastore,
and when finally presented with Admin -> Auth Config page, he never reads notice about restarting,
since he has already learned, that it maps into Config entity, and he thinks he understands it already.
- deploy empty project, delete Config entity, wake up empty project by request, shutdown instance
- diable API: Identity ID (for this test)
(Working setup for anybody who finds this by chance)
- https://appengine.google.com/settings:
Authentication Type -> Google Accounts API
- deploy gae-init:
- incognito window -> login with account the owner of app engine app
- OK, logged in as admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment