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/07/18 19:12:55 UTC

[GitHub] [apisix] cgodefroy92 commented on issue #4616: Keycloak integration

cgodefroy92 commented on issue #4616:
URL: https://github.com/apache/apisix/issues/4616#issuecomment-882104203


   Hello and thanks for your response.
   Here is the curl command I have used to create the route : 
   
   The url of the backend in the Kubernetes Cluster is : http://10.110.21.213:8181/greeting (GET method)
   The url of the discovery end-point in KeyCloak in the Kubernetes Cluster is : http://10.103.25.28:7070/auth/realms/myrealm/.well-known/uma2-configuration
   
   Regards
   CG
   
   ```
   curl http://127.0.0.1:9180/apisix/admin/routes -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X POST -d '
   {
     "name": "greeting",
     "uri": "/greeting",
     "plugins": {
       "authz-keycloak": {
         "discovery": "http://10.103.25.28:7070/auth/realms/myrealm/.well-known/uma2-configuration",
         "client_id": "apisix",
         "client_secret": "**************",
         "permissions": ["greeting#get"]
       }
   },
     "upstream": {
       "type": "roundrobin",
       "nodes": {
         "10.110.21.213:8181": 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