cwy57885142 opened a new issue #3516:
URL: https://github.com/apache/apisix/issues/3516


   关于插件authz-keycloak中的Bearer {JWT Token}如何生成问题
   
   Create a route and enable the authz-keycloak plugin on the route:
   curl http://127.0.0.1:9080/apisix/admin/routes/5 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/get",
       "plugins": {
           "authz-keycloak": {
               "token_endpoint": 
"http://127.0.0.1:8090/auth/realms/{client_id}/protocol/openid-connect/token";,
               "permissions": ["resource name#scope name"],
               "audience": "Client ID"
           }
       },
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "127.0.0.1:8080": 1
           }
       }
   }'
   
   Test Plugin:
   curl http://127.0.0.1:9080/get -H 'Authorization: Bearer {JWT Token}'
   
   
   JWT Token如何生成?


----------------------------------------------------------------
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:
[email protected]


Reply via email to