applequist
applequist

Reputation: 314

Using appengine and google identity platform as a mobile app backend

I'm sending SOS message in a bottle here but who knows...

So I'd like to use an AppEngine application as the backend for a mobile app (available on ios and android, but no browser-based app so far).

I'd like to support anonymous users as well as users signed in with different provider (Google, Facebook and the traditional username/password).

So Google Identity Toolkit seems like the way to go... I managed to get the identity toolkit demo running on ios (shame on you Google for not providing a Swift Framework...), yet I still don't get how it fit in an AppEngine application:

Thanks a lot for any help

Brieuc

Upvotes: 0

Views: 154

Answers (1)

Dewey
Dewey

Reputation: 776

Here is the python version of what I think you're wanting

  • Client received the auth_token from provider
  • Client sends it to your app-engine backend
  • App engine uses token to get user profile from provider
  • Creates user account
  • Generates private bearer token & returns it to client
  • Client ads this token to http auth header for all api requests
  • Backend uses this private token to identify & load user.

If I have any of this wrong, please clarify here because I'm trying to understand this as well.

Upvotes: 0

Related Questions