I have a form and I need to send the content to the server.
I use google authentication because only authorized people can send to the server.
The form is somthing like this:
<form action="/blog/submit" method="post">
...
</form>
The authentication is needed only during the submit, not entering the form page. So in the submit controller I used something like this:
class SubmitPage(webapp.RequestHandler):
def post(self):
if users.get_current_user() is None:
self.redirect(users.create_login_url(self.request.uri))
...
The problem is that the return url in redirect is executed only ad an HTTP GET, not HTTP POST as I wanted.
I'd like to authenticate and then redirect to the submit page (POST), but it tries to execute a GET on the same url.
Is it possible to implement what I want?