为新的 APIM REST API 进行身份验证?

Authenticate for new APIM REST APIs?

在 WSO2 API 老经理 store/publisher APIs, I can login and get a cookie for authentication. But in new APIs 我找不到登录名 API。在文档中,我可以看到它使用 (OAuth) 令牌。

curl -H "Authorization: Bearer aa0ddec1ac656744234477f20fafcb0d" http://127.0.0.1:9763/api/am/store/v0.9/apis

但我找不到获取它的方法。有人可以帮我吗?

您必须使用 DCR API 创建 OAuth2 应用程序。可以找到文档 here。然后调用令牌 API 并获取访问令牌。