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 2022/03/13 16:58:46 UTC
[GitHub] [apisix] niketrk commented on pull request #6586: feat: add support for password grant in keycloak plugin
niketrk commented on pull request #6586:
URL: https://github.com/apache/apisix/pull/6586#issuecomment-1066141219
@sshniro
I checked the logs of above test runs.
error is: "status=401, body={\"error\":\"invalid_grant\",\"error_description\":\"Invalid user credentials\"}"
I have used following settings in my test scenario:
"client_id": "course_management"
"client_secret": "d1ec69e9-55d2-4109-a3ea-befa071579d5"
username = "teacher@gmail.com"
password = "123456"
grant_type = "password"
I took the above settings from other Keycloak test cases.
I am doubting that these settings are not proper for the test Keycloak instance. In my local environment, I put my Keycloak settings and then run test scenario via
`TEST_NGINX_BINARY=/usr/local/bin/openresty prove -Itest-nginx/lib -r t/plugin/authz-keycloak.t`
And it worked properly.
-------------
Another issue is reported as: "ERROR: apisix/plugins/authz-keycloak.lua: line 719: getting the Lua global "string""
For which I made fix "local str_find = string.find", so it should be fixed now.
--
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