You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/04/07 10:27:43 UTC

[GitHub] [apisix] Firstsawyou commented on issue #4001: request help: {"error_msg":"failed to check the configuration of plugin key-auth err: additional properties forbidden, found key"}

Firstsawyou commented on issue #4001:
URL: https://github.com/apache/apisix/issues/4001#issuecomment-814799845


   Enabling the key-auth plugin in the route does not require configuration data, you just need to do as follows:
   
   ```json
   {
       "methods": ["GET"],
       "uri": "/testgrpc8",
       "plugins": {
           "grpc-transcode": {
               "proto_id": "1",
               "service": "helloworld.Greeter",
               "method": "SayHello"
           },
           "key-auth": {         
           }
       },
       "upstream": {
           "scheme": "grpc",
           "type": "roundrobin",
           "nodes": {
               "taie-address-service.taie.svc.cluster.local:8081": 1
           }
       }
   }'
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org