Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 949
viraptor Avatar asked Aug 25 '09 00:08

viraptor


People also ask

What is App Engine HTTP?

App Engine is a fully managed, serverless platform for developing and hosting web applications at scale. You can choose from several popular languages, libraries, and frameworks to develop your apps, and then let App Engine take care of provisioning servers and scaling your app instances based on demand.

What are the different methods for the authentication of Google Compute Engine API?

With a user account, you can authenticate to Google APIs and services in the following ways: Use the gcloud CLI to set up Application Default Credentials (ADC). Use the gcloud CLI to generate access tokens. Use your user credentials to impersonate a service account.


1 Answers

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:

  • paste.auth.basic
  • barrel
  • AuthKit
  • wsgiauth
like image 182
Steven Kryskalla Avatar answered Oct 05 '22 01:10

Steven Kryskalla