You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "SKDragon18 (via GitHub)" <gi...@apache.org> on 2025/02/10 06:11:20 UTC
Re: [I] help request: authz-keycloak with authorization_code [apisix]
SKDragon18 commented on issue #11960:
URL: https://github.com/apache/apisix/issues/11960#issuecomment-2647005547
This is my curl to create route in apisix:
`curl -X PUT "http://127.0.0.1:9180/apisix/admin/routes/keycloak-authen" \
-H "X-API-KEY: xxx" \
-H "Content-Type: application/json" \
-d '{
"uri": "/auth/token",
"plugins": {
"authz-keycloak": {
"token_endpoint": "http://host.docker.internal:8080/realms/apisix_test_realm/protocol/openid-connect/token",
"client_id": "xxx",
"client_secret": "xxx",
"password_grant_token_generation_incoming_uri": "/auth/token"
}
},
"upstream": {
"type": "roundrobin",
"nodes": {
"host.docker.internal:8080": 1
}
}
}'
`
--
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