From 78ba5ebc30482deb95781e618821402c01507a79 Mon Sep 17 00:00:00 2001 From: Wayne Zhang Date: Fri, 16 Dec 2016 09:54:25 -0800 Subject: [PATCH] Update api_config_auth.yaml to not require api_key --- endpoints/bookstore-grpc/api_config_auth.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/endpoints/bookstore-grpc/api_config_auth.yaml b/endpoints/bookstore-grpc/api_config_auth.yaml index 993b2fa2eb9..7dacee52f1d 100644 --- a/endpoints/bookstore-grpc/api_config_auth.yaml +++ b/endpoints/bookstore-grpc/api_config_auth.yaml @@ -35,12 +35,23 @@ title: Bookstore gRPC API apis: - name: endpoints.examples.bookstore.Bookstore +# +# API usage restrictions. +# +usage: + rules: + - selector: "*" + allow_unregistered_calls: true + +# +# Request authentication. +# authentication: providers: - id: google_service_account - # Replace SERVICE-ACCOUNT-EMAIL with your service account's email address. - issuer: SERVICE-ACCOUNT-EMAI - jwks_uri: https://www.googleapis.com/robot/v1/metadata/x509/SERVICE-ACCOUNT-EMAI + # Replace SERVICE-ACCOUNT-ID with your service account's email address. + issuer: SERVICE-ACCOUNT-ID + jwks_uri: https://www.googleapis.com/robot/v1/metadata/x509/SERVICE-ACCOUNT-ID rules: # This auth rule will apply to all methods. - selector: "*"