Search code examples
google-app-enginehttp-authentication

HTTP authentication in App Engine Dev Server


I want to setup the App Engine Dev Server, so that it's available to other people for a preview.

What I'd really like to do before that is enable HTTP authentication for any URL served from that site. I don't want anyone to access the service without passing that stage. I could, of course, build my own HTTP authentication into the app I'm developing, but that's not a perfect solution, because I don't need that feature when the app is deployed.

Is there any good way to solve it?


Solution

  • Are you using Java or Python?

    If you're using Python, you can use existing WSGI middleware to handle HTTP basic auth. Here are some options: