-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request help: apisix plugin authz-keycloak fail #4840
Comments
It cloud be a bug. apisix/apisix/plugins/authz-keycloak.lua Lines 567 to 591 in b0246c8
|
I think so too,How can I view the debug log about authz-keycloak.lua?such as : log.debug("Resource registration endpoint: ", resource_registration_endpoint) |
You need to configure the |
|
fix it |
Issue description
router info:
{
"uris": [
"/*"
],
"name": "router",
"plugins": {
"authz-keycloak": {
"audience": "spring-client",
"cache_ttl_seconds": 86400,
"grant_type": "urn:ietf:params:oauth:grant-type:uma-ticket",
"http_method_as_scope": false,
"keepalive": true,
"keepalive_pool": 5,
"keepalive_timeout": 60000,
"lazy_load_paths": false,
"policy_enforcement_mode": "ENFORCING",
"ssl_verify": true,
"timeout": 3000,
"token_endpoint": "http://127.0.0.1:8090/auth/realms/spring/protocol/openid-connect/token"
}
},
"upstream_id": "368495760469131974",
"status": 1
}
upstream info
{"nodes":[{"host":"192.168.3.101","port":8081,"weight":10},{"host":"192.168.3.101","port":8082,"weight":10}],"timeout":{"connect":6,"read":6,"send":6},"type":"roundrobin","scheme":"http","pass_host":"pass","name":"gateway"}
apisix sevice ip :192.168.2.67
request:
<title>500 Internal Server Error</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style>GET http://192.168.2.67:9080/products
GET /products HTTP/1.1
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJYRkttc0JQLUgtX2twdUNCVXFvTk1kcUlWc3RZT1FDbzVBUzR2bVdULUFVIn0.eyJleHAiOjE2MjkxOTQ3ODMsImlhdCI6MTYyOTE5NDQ4MywianRpIjoiNTE3ZTg1Y2MtZjBjNi00M2NjLTk1M2YtYTU5NzQ3N2ExYTI3Iiwi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: PostmanRuntime/7.26.8
Accept: /
Cache-Control: no-cache
Postman-Token: 111b752e-0821-4a03-837a-14aff5e11209
Host: 192.168.2.67:9080
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
HTTP/1.1 500 Internal Server Error
Date: Tue, 17 Aug 2021 10:01:26 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 553
Connection: close
ETag: "611b237b-229"
Server: APISIX/2.6
An error occurred.
You can report issue to APISIX
Faithfully yours, APISIX.
Environment
apisix version
):uname -a
):nginx -V
oropenresty -V
):curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API):luarocks --version
):curl http://127.0.0.1:9000/v1/server_info
<title>Apache APISIX Dashboard</title> <script> window.routerBase = "/"; </script> <script> //! umi version: 3.4.2 </script> Out-of-the-box mid-stage front/design solution!The text was updated successfully, but these errors were encountered: