Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.11 KB

File metadata and controls

45 lines (27 loc) · 1.11 KB

Google Cloud Endpoints sample for Google App Engine flexible environment

Deploying the backend

Update the openapi.yaml configuration file

Edit the openapi.yaml file and replace YOUR-PROJECT-ID with your project ID.

The backend can be secured with several authentication schemes:

  • Firebase Auth
  • Google ID token
  • Google JWT (e.g. service account)
  • Auth0

Each of those require further configuration. See the documentation (currently under whitelist) for more information.

Deploy

Deploy the application:

gcloud beta app deploy

Running the client

Send an echo request using an API key

First, create a project API key.

Then, run:

go run client/main.go -api-key=AIza.... -host=https://my-app.appspot.com -echo message

Send a request using JWT authentication

First, download a Service Account JSON key file.

Then, run:

go run client/main.go -host=https://my-app.appspot.com -service-account=path_to_service_account.json