Hi,
In the production roadmap I saw that there's support for the app
engine remote_api, but I can't seem to find any documentation on how
to use it within Typhoonae.
In some of our backend services we currently use the remote_api to
retrieve data from the app engine datastore. This way we can easily
access and manipulate the data which is stored on Google. We use the
remote_api_stub module from the google.appengine.ext.remote_api
package as followed:
from google.appengine.ext.remote_api import remote_api_stub
remote_api_stub.ConfigureRemoteDatastore('gae-app-id', '/
remote_api', ('username', 'password'), '
gae-app-id.appspot.com')
For typhoonae we want to use the same interface so we don't need to
change any of our backend code to communicate with typhoonae's Mongo
database. We've added the remote_api to the buildin section of the
app.yaml like:
builtins:
- remote_api: on
This creates the following handler:
handlers:
- login: admin
script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
secure: optional
url: /remote_api
When we try to access the remote api through the registered handler at
http://app-id.ourapp.com/remote_api we see the following response:
HTTPError: HTTP Error 302: Requires login
If I go to the same url in my browser I see a redirect page with the
text "You're logged in as admin@typhoonae! This is a demo login
handler. Continue". When I click continue a typhoonae_login cookie is
set. After a refresh I see "This request did not contain a necessary
header".
Is there a way that we can skip this login procedure so that it
corresponds with the app engine code? I've manually removed the login:
admin section from the app.yaml but that doesn't seem to be working. I
also can't find any details on the credentials (admin@typhoonae??)
which are needed for the ConfigureRemoteDatastore method. Does anybody
know how to get the remote_api to work for typhoonae's database?
regards,
Maarten