Python Authentication from Google App Engine from API

I am currently creating a Python web application in the Google App Engine, and I want to expose various parts of my application through the JSON API. This API can be used as a mobile client or (for testing purposes) a headless Python script.

I need to be able to authenticate users before performing operations on the API. I notice that the user API does not support simple authentication [in the form of authentication (username, password)], so just sending the username / password to the URL and then using a specific token will not work.

Ultimately, I would like the application to use Facebook Connect in addition to its own inputs.

Can anyone think of the best way to authenticate users in this situation using the remote JSON API and the Google App Engine?

Greetings

+3
source share
2 answers

Just for the record, in the end I ended up with the wonderful Tipfy framework.

0
source

You might want to check out the recently released oauth support . Otherwise, you can implement your own authentication, for example, using simple or digest authentication.

0
source

Source: https://habr.com/ru/post/1750790/


All Articles