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 2022/12/14 04:06:09 UTC

[GitHub] [apisix] tzssangglass commented on issue #8514: help request: Graphql subscription fails with plugin authz-keycloak

tzssangglass commented on issue #8514:
URL: https://github.com/apache/apisix/issues/8514#issuecomment-1350367601

   > I tried creating two identical routes, but one of them doesn't have the authz-keycloak plugin enabled. Something like this:
   
   If you plan to use two routes, then you can do this
   
   1. match graphql requests
   
   ```json
   {
     "uris": [
       "/explorer/exchange/v1/graphql"
     ],
     "name": "exchange-service-dev-subs",
     "host": "xxxx.com",
     "vars": [
       ["graphql_name", "~=", null]
     ],
     "upstream_id": "880ced1a"
     "enable_websocket": true
   }
   ```
   
   1. match graphql requests
   
   ```json
   {
     "uris": [
       "/explorer/exchange/v1/graphql"
     ],
     "name": "exchange-service-dev-subs",
     "host": "xxxx.com",
     "vars": [
       ["graphql_name", "~=", null]
     ],
     "upstream_id": "880ced1a"
     "enable_websocket": true
   }
   ```
   
   2. match not graphql requests
   
   ```json
   {
     "uris": [
       "/explorer/exchange/v1/graphql"
     ],
     "name": "exchange-service-dev-subs",
     "host": "xxxx.com",
     "vars": [
       ["graphql_name", "==", null]
     ],
     "upstream_id": "880ced1a"
     "enable_websocket": true
   }
   ```


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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