Coderyangg commented on issue #8510:
URL: https://github.com/apache/apisix/issues/8510#issuecomment-1347993685
> Can you share the config detail like below?
>
> 1. Route config (with plugin), Service config (without plugin). Output
detail.
> 2. Route config (without plugin), Service config (with plugin). Output
detail.
1.{
"uri": "/permission/getAccessToken",
"name": "getAccessToken",
"methods": [
"POST"
],
"plugins": {
"ext-plugin-post-req": {
"conf": [
{
"name": "TokenPluginPre",
"value":
"{\"clientSecret\":\"9rPo4Xf9DGEDvQnlzIrsfgmjW2L1zIe5\",\"redisHost\":\"192.168.0.1\",\"redisPort\":\"6379\",\"preKey\":\"dit-permission\",\"keycloakUrl\":\"https://keycloak.icos.city\",\"dbValue\":\"1\"}"
}
],
"disable": true
},
"ext-plugin-post-resp": {
"conf": [
{
"name": "TokenPluginPost",
"value":
"{\"clientSecret\":\"9rPo4Xf9DGEDvQnlzIrsfgmjW2L1zIe5\",\"redisHost\":\"172.31.48.1\",\"redisPort\":\"6379\",\"preKey\":\"dit-permission\",\"keycloakUrl\":\"https://keycloak.icos.city\",\"dbValue\":\"1\"}"
}
],
"disable": true
},
"ext-plugin-pre-req": {
"conf": [
{
"name": "TokenPluginPre",
"value":
"{\"clientSecret\":\"9rPo4Xf9DGEDvQnlzIrsfgmjW2L1zIe5\",\"redisHost\":\"192.168.0.1\",\"redisPort\":\"6379\",\"preKey\":\"dit-permission\",\"keycloakUrl\":\"https://keycloak.icos.city\",\"dbValue\":\"1\"}"
}
],
"disable": true
},
"openid-connect": {
"bearer_only": true,
"client_id": "xx",
"client_secret": "xx",
"disable": false,
"discovery":
"https://keycloak.icos.city/realms/dit/.well-known/openid-configuration",
"realm": "xx",
"scope": "openid profile"
},
"request-id": {
"disable": true
}
},
"service_id": "434742871157899976",
"status": 1
}
2.
{
"name": "permission",
"upstream": {
"nodes": [
{
"host": "172.31.247.53",
"port": 8091,
"weight": 1
}
],
"timeout": {
"connect": 6,
"send": 6,
"read": 6
},
"type": "roundrobin",
"scheme": "http",
"pass_host": "pass",
"keepalive_pool": {
"idle_timeout": 60,
"requests": 1000,
"size": 320
}
},
"plugins": {
"ext-plugin-post-resp": {
"conf": [
{
"name": "TokenPlugin",
"value": "{\"clientSecret\":
\"grPo4Xf9DGEDQnlzIrsfgmjw2L1zIe5\",\"redisHost\":\"172.19.64.1\",\"redisPort\":\"6379\",\"preKey\":\"dit-permission\",\"keycloakurl\":\"https://keycloak.icoscity\",\"dbvalue\":\"1\"}"
}
],
"disable": true
},
"ext-plugin-pre-req": {
"conf": [
{
"name": "TokenPluginPre",
"value":
"{\"clientSecret\":\"xx\",\"redisHost\":\"192.168.0.1\",\"redisPort\":\"6379\",\"preKey\":\"dit-permission\",\"keycloakUrl\":\"https://keycloak.icos.city\",\"dbValue\":\"1\"}"
}
],
"disable": true
},
"openid-connect": {
"bearer_only": true,
"client_id": "xx",
"client_secret": "xx",
"disable": false,
"discovery":
"https://keycloak.icos.city/realms/dit/.well-known/openid-configuration",
"realm": "xx",
"scope": "openid profile"
},
"request-id": {
"disable": false
}
}
}
--
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]