You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "itsMarydan (via GitHub)" <gi...@apache.org> on 2023/09/04 16:52:32 UTC

[GitHub] [apisix] itsMarydan opened a new issue, #10157: help request: issues using keycloak for openid connect configuration

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

   ### Description
   
   I am having issues configuring keycloak as my open id connect provider. 
   
   I keep getting this error  *599941 [lua] openid-connect.lua:319: phase_func(): OIDC introspection failed: response indicates failure, status=307, body=, client: 172.29.0.1, server: _, request: "GET /anything/test HTTP/1.1", host: "127.0.0.1:9080"
   
   
   here is my configuration 
   
    curl http://127.0.0.1:9180/apisix/admin/routes/5 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '                      {                                                          "uri":"/anything/*",    "plugins": {              "openid-connect": {             "client_id": "demo",                                  
               "client_secret": "hZ7tKWlokurPPm40zYdxyTHaBxkLkT4F",
               "discovery": "https://fa8f-2600-1014-a015-f03c-7d33-7ad1-1d0b-310b.ngrok-free.app/realms/demo/.well-known/openid-configuration",
               "scope": "openid profile",
               "bearer_only": true,
               "realm": "demo",
               "redirect_uri": "http://127.0.0.1:9080/anything/callback",
               "logout_path": "/anything/logout"
           }
       },
     "upstream":{
       "type": "roundrobin",
       "nodes":{
         "httpbin.org:443":1
       }
     }
   }'
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - 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:
   - 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] itsMarydan commented on issue #10157: help request: issues using keycloak for openid connect configuration

Posted by "itsMarydan (via GitHub)" <gi...@apache.org>.
itsMarydan commented on issue #10157:
URL: https://github.com/apache/apisix/issues/10157#issuecomment-1726819964

   Hi I resolved my issue, For networking related concerns I was refernecing my keycloak server via ngrok  in my apisix spec but when retrieving my token from keycloak I was using localhost so the issuer did not match what apisix was expecting 


-- 
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] Revolyssup commented on issue #10157: help request: issues using keycloak for openid connect configuration

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #10157:
URL: https://github.com/apache/apisix/issues/10157#issuecomment-1706095420

   @itsMarydan Your discovery endpoint is redirecting somewhere else instead of giving discovery metadata. Make sure there are no redirection from discovery server.


-- 
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] itsMarydan commented on issue #10157: help request: issues using keycloak for openid connect configuration

Posted by "itsMarydan (via GitHub)" <gi...@apache.org>.
itsMarydan commented on issue #10157:
URL: https://github.com/apache/apisix/issues/10157#issuecomment-1726820320

   Issue is resolved!


-- 
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] kayx23 commented on issue #10157: help request: issues using keycloak for openid connect configuration

Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #10157:
URL: https://github.com/apache/apisix/issues/10157#issuecomment-1726800544

   see if this helps https://docs.api7.ai/apisix/how-to-guide/authentication/set-up-sso-with-keycloak


-- 
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] itsMarydan closed issue #10157: help request: issues using keycloak for openid connect configuration

Posted by "itsMarydan (via GitHub)" <gi...@apache.org>.
itsMarydan closed issue #10157: help request: issues using keycloak for openid connect configuration 
URL: https://github.com/apache/apisix/issues/10157


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