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/07/14 06:08:48 UTC

[GitHub] [apisix] airclear opened a new issue, #7460: help request: Can't enable plugin authz-casdoor

airclear opened a new issue, #7460:
URL: https://github.com/apache/apisix/issues/7460

   ### Description
   
   
   
   Install with Helm , Chart version: 0.10.0
   
   Helm values:
   
   ```yaml
   gateway:
     type: NodePort
     tls:
       enabled: true
   
   dashboard:
     enabled: true
     image:
       repository: apache/apisix-dashboard
       pullPolicy: IfNotPresent
       # Overrides the image tag whose default is the chart appVersion.
       tag: 2.13-alpine
     config:
       conf:
         etcd:
           # Supports defining multiple etcd host addresses for an etcd cluster
           endpoints:
             - etcd.ingress-apisix.svc.cluster.local:2379
           # apisix configurations prefix
           prefix: "/apisix"
           # Etcd basic auth info
           username: root
           password: root
   
   etcd:
     # install etcd(v3) by default, set false if do not want to install etcd(v3) together
     enabled: false
     host:
       - http://etcd.ingress-apisix.svc.cluster.local:2379  
   
   ingress-controller:
     enabled: true
     config.apisix.serviceNamespace: ingress-apisix
   
   plugins:
     - api-breaker
     - authz-keycloak
     - basic-auth
     - batch-requests
     - consumer-restriction
     - cors
     - echo
     - fault-injection
     - grpc-transcode
     - hmac-auth
     - http-logger
     - ip-restriction
     - ua-restriction
     - jwt-auth
     - kafka-logger
     - key-auth
     - limit-conn
     - limit-count
     - limit-req
     - node-status
     - openid-connect
     - authz-casbin
     - authz-casdoor
     - prometheus
     - proxy-cache
     - proxy-mirror
     - proxy-rewrite
     - redirect
     - referer-restriction
     - request-id
     - request-validation
     - response-rewrite
     - serverless-post-function
     - serverless-pre-function
     - sls-logger
     - syslog
     - tcp-logger
     - udp-logger
     - uri-blocker
     - wolf-rbac
     - zipkin
     - traffic-split
     - gzip
     - real-ip
     - ext-plugin-pre-req
     - ext-plugin-post-req
   stream_plugins:
     - mqtt-proxy
     - ip-restriction
     - limit-conn
   
   
   ```
   
   Config the Route by curl:
   
   ```
   curl "http://apisix.unionfactoring.local:32380/apisix/admin/routes/3a8b12cf"  -H 'Authorization:-3Dkvk' -X PUT -d '
   {
     "uri": "/anything/*",
     "name": "casdoor-httpbin",
     "methods": ["GET"],
     "host": "httpbin.xxx.com",
     "plugins": {
       "authz-casdoor": {
           "endpoint_addr":"http://10.200.180.82:7001",
           "callback_url":"http://apisix.xxxx.com:32380/anything/callback",
           "client_id":"xx",
           "client_secret":"xx"
       }
     },
     "upstream_id": "5ce57b8e",
     "status": 1
   }'
   
   ```
   
   response :
   
   ```
   {"code":10000,"message":"schema validate failed: schema not found, path: plugins.authz-casdoor","data":null,"request_id":"48b8e334-f12a-4a41-98f9-e4275825aa92"}
   
   ```
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): apache/apisix:2.14.1-alpine
   - Operating system (run `uname -a`): 
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:  apache/apisix-dashboard:2.13-alpine  (no used)
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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

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


[GitHub] [apisix] airclear commented on issue #7460: help request: Can't enable plugin authz-casdoor

Posted by GitBox <gi...@apache.org>.
airclear commented on issue #7460:
URL: https://github.com/apache/apisix/issues/7460#issuecomment-1184094010

   my fault ! wrong url  I used
   
   change to the apisix-admin's url  it works:
   
   ```
   curl "http://localhost:50701/apisix/admin/routes/3a8b12cf"  -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
     "uri": "/anything/*",
     "name": "casdoor-httpbin",
     "methods": ["GET"],
     "host": "httpbin.xxx.com",
     "plugins": {
       "authz-casdoor": {
           "endpoint_addr":"http://10.200.180.57:7001",
           "callback_url":"http://httpbin.xxx.com:32380/anything/callback",
           "client_id":"223c6180503181a2da92",
           "client_secret":"b9add612d0142bfa3f9bd62cf0013e9cfbdd82ff"
       }
     },
     "upstream_id": "5ce57b8e",
     "status": 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.

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

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


[GitHub] [apisix] airclear closed issue #7460: help request: Can't enable plugin authz-casdoor

Posted by GitBox <gi...@apache.org>.
airclear closed issue #7460: help request: Can't enable plugin authz-casdoor
URL: https://github.com/apache/apisix/issues/7460


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