我使用的是wso2 APIM4.0.0。我想创建并发布一个api。根据文档的说法,除了发布网站之外,还可以使用rest来实现这一点。我认为,为完成这项任务,应做以下工作:
在某些情况下,端点可能是安全的。让我们假设它是基本安全的。您可以使用端点安全配置轻松地在publisher web门户上设置这一配置,如下所示:

问题是如何使用publisher(或其他) rest设置安全参数端点?是否有任何api来指定端点的安全参数?
发布于 2022-06-28 09:49:45
添加终结点安全配置可以通过WSO2 API管理器发布服务器REST实现,方法是将endpoint_security块引入API创建请求主体,如下所定义
...
"endpointConfig": {
"endpoint_type": "http",
"sandbox_endpoints": {
"url": "http://backendurl"
},
"production_endpoints": {
"url": "http://backendurl"
},
"endpoint_security": {
"sandbox": {
"password": null,
"tokenUrl": null,
"clientId": null,
"clientSecret": null,
"customParameters": {},
"type": null,
"grantType": null,
"enabled": false,
"username": null
},
"production": {
"password": null,
"tokenUrl": "http://tokenendpoint",
"clientId": "clientID",
"clientSecret": "clientSecret",
"customParameters": {},
"type": "OAUTH",
"grantType": "CLIENT_CREDENTIALS",
"enabled": true,
"username": null
}
}
},
...https://stackoverflow.com/questions/72781244
复制相似问题