apisix icon indicating copy to clipboard operation
apisix copied to clipboard

request help:I need a demo for authz-keycloak

Open cverdela opened this issue 5 years ago • 4 comments

Issue description

Environment

  • apisix version (cmd: apisix version):
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API):
  • apisix-dashboard version, if have:

cverdela avatar Apr 12 '21 08:04 cverdela

You can refer to the documentation here: https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/authz-keycloak.md The test cases of the authz-keycloak plugin may be helpful to you: https://github.com/apache/apisix/blob/master/t/plugin/authz-keycloak.t

Firstsawyou avatar Apr 12 '21 09:04 Firstsawyou

401 with error:{"error":"invalid_grant","error_description":"Invalid bearer token"} get auth/realms/apisix/.well-known/uma2-configuration "grant_types_supported": [ "authorization_code", "implicit", "refresh_token", "password", "client_credentials" ], how to add grant_type :urn:ietf:params:oauth:grant-type:uma-ticket

cverdela avatar Apr 13 '21 08:04 cverdela

@Firstsawyou

cverdela avatar Apr 13 '21 09:04 cverdela

401 with error:{"error":"invalid_grant","error_description":"Invalid bearer token"} get auth/realms/apisix/.well-known/uma2-configuration "grant_types_supported": [ "authorization_code", "implicit", "refresh_token", "password", "client_credentials" ], how to add grant_type :urn:ietf:params:oauth:grant-type:uma-ticket

Did you check if the access token is valid? Or provide your configuration information?

Firstsawyou avatar Apr 15 '21 14:04 Firstsawyou