MirtoBusico opened a new issue, #8452: URL: https://github.com/apache/apisix/issues/8452
### Description Hi all, I'm trying to setup a route for apisix dashboard usin openid-connect for authentication; but I receive an error after the keycloak login. I'm trying to follow [this article](https://www.keycloak.org/2021/12/apisix) but the screen ad fields are different from the last apisix and keycloak versions. When I try to access the apisix dashboard with this URL "https://apisix.h.net" (my home lab internal address) without enabling the openid-connect plugin everything works correctly. If I enable the openid-connect plugin first I'm redirected to the keycloak login page (the login is correct and I can see the session in keycloak) then I receive the error page saying "An error occurred. You can report issue to APISIX Faithfully yours, APISIX." The page URL is ``` https://apisix.h.net/*?state=663136eda8578d0c00fff11919cd886f&session_state=938a3031-66ad-4a96-bbc0-7b84c98b7f41&code=cc5e7778-a5ad-45e6-9e19-9489f4af5965.938a3031-66ad-4a96-bbc0-7b84c98b7f41.755e9ac7-b5a6-46d4-9660-fc6aa23d3756 ``` The route definition: ``` { "uri": "/*", "name": "apisix-dashboard", "desc": "apisix.h.net primary route", "methods": [ "GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE" ], "host": "apisix.h.net", "plugins": { "openid-connect": { "access_token_in_authorization_header": true, "bearer_only": false, "client_id": "apisix", "client_secret": "ICLrl8NnZxJg8fj0bGrnC0nJxvhFM9fB", "disable": false, "discovery": "https://k6k.h.net/realms/apisix_realm/.well-known/openid-configuration", "introspection_endpoint_auth_method": "client_secret_post", "logout_path": "/logout", "realm": "apisix_realm", "redirect_uri": "https://apisix.h.net/*", "scope": "openid profile" }, "redirect": { "http_to_https": true } }, "upstream_id": "436822533732303574", "status": 1 } ``` The upstream (apisix gateway is of type loadbalancer) is: ``` { "timeout": { "connect": 6, "send": 6, "read": 6 }, "type": "roundrobin", "scheme": "http", "discovery_type": "dns", "pass_host": "pass", "name": "apisix-dashboard", "service_name": "apisix-dashboard.apisix.svc.cluster.local:80", "keepalive_pool": { "idle_timeout": 60, "requests": 1000, "size": 320 } } ``` What I'm doing wrong? ### Environment - APISIX version (run `apisix version`): ``` root@apisix-64fffcfb4c-55vhw:/usr/local/apisix# apisix version /usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua version 2.15.1 root@apisix-64fffcfb4c-55vhw:/usr/local/apisix# ``` - Operating system (run `uname -a`): ``` root@apisix-64fffcfb4c-55vhw:/usr/local/apisix# uname -a Linux apisix-64fffcfb4c-55vhw 5.15.0-53-generic #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022 x86_64 GNU/Linux root@apisix-64fffcfb4c-55vhw:/usr/local/apisix# ``` - 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: 2.13.0 - 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
