我已经集成了WSO2 (IS-KM-5.6.0)和APIM2.5.0。
我正在使用以下命令生成具有默认作用域的访问令牌
"grant_type=password&username=ldapuser@local.com@carbon.super&password=password“"Content-Type:application/x-www-form-urlencoded”-u:-k -d -H curl https://localhost:9445/oauth2/token
它为我提供了适当的访问令牌,默认使用作用域。以下是上述命令的结果:
{"access_token":"5218d614-e327-379f-819a-b9572daa106d","refresh_token":"4ed7484d-ca30-31c1-8bce-e778f4aab6fd",“scope”:“默认”,“token_type”:“持有者”,"expires_in":2568}
但是,我无法使用它来调用APIM (publisher rest APIM)的rest APIM来执行以下活动: a)获取商店应用程序详细信息b)添加应用程序等
我在WSO2文档中读到,要使用store和publisher restAPIs,只能使用可用于APIM store和publisher的作用域。
那么,是否可以在没有作用域(apim:subscribe)的情况下调用这些存储或发布者restAPI,或者是否有其他方法可以做到这一点?
有什么帮助吗?
谢谢
https://stackoverflow.com/questions/55089715
复制相似问题