-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
bug: keycloak-authz
plugin without resource_registration_endpoint
when lazy_load_paths
is true returns 500 error
#10708
Comments
@luoluoyuyu would you like to take a look when you are free? |
@shreemaan-abhishek I can look into this |
Hi @lakshya8066 |
Yes I am trying to reproduce the issue. Having errors 403 error while sending the request. I think it is because of some issue with the JWT token I fetched. |
@lakshya8066 Hi, yes. |
@kayx23 Yes the error might be coming from APISIX. This is the route config I used for apisix and I have a keycloack instance running on port 8080
I used this command get the access token: but while making a curl request like: This looks like it is coming from this section |
@lakshya8066 |
My guess: Why not just configure the options I configured in the PR description? |
You are right @luoluoyuyu @kayx23 |
If you by chance started APISIX using the quickstart script from getting started, the IP address needs to be your 192.x.x.x inet address and not loopback. |
@kayx23 Yes, you were correct. It worked after running apisix after building from source. |
I found the issue here, In the function So I think returning |
Current Behavior
Issue separated out from this report.
Configure keycloak and configure a route as such (
lazy_load_paths
:true
):Request an access token from keycloak and send a request to the route with the access token:
because
resource_registration_endpoint
is neither explicitly configured nor presented in the discovery doc:The 503 is expected:
But the 500?
Expected Behavior
Not 500.
Environment
apisix version
): 3.7.0The text was updated successfully, but these errors were encountered: