我想做的是:
1.带有wso2标识服务器5.1.0和wso2 API管理器1.10.0的SSO(已完成)
参考资料:https://docs.wso2.com/display/AM1100/Configuring+Single+Sign-on+with+SAML2
2.通过Facebook凭据登录wso2 API管理器1.10.0 (已完成)
3.通过Facebook帐户登录API-M后,我想部署示例API (失败)。
API-M日志:
ERROR {org.wso2.carbon.governance.api.common.GovernanceArtifactManager} - Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata. {org.wso2.carbon.governance.api.common.GovernanceArtifactManager}
org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
ERROR GovernanceArtifactManager Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Error while performing registry transaction operation {org.wso2.carbon.apimgt.impl.UserAwareAPIProvider}
org.wso2.carbon.governance.api.exception.GovernanceException: Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
ERROR UserAwareAPIProvider Error while performing registry transaction operation
org.wso2.carbon.governance.api.exception.GovernanceException: Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
ERROR {JAGGERY.site.blocks.item-design.ajax.add:jag} - org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.apimgt.api.APIManagementException: Error in adding API :CalculatorAPI (/publisher/modules/api/add.jag#107)
Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error in adding API :CalculatorAPI
Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error while performing registry transaction operation
Caused by: org.wso2.carbon.governance.api.exception.GovernanceException: Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
ERROR add:jag org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.apimgt.api.APIManagementException: Error in adding API :CalculatorAPI (/publisher/modules/api/add.jag#107)
Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error in adding API :CalculatorAPI
Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error while performing registry transaction operation
Caused by: org.wso2.carbon.governance.api.exception.GovernanceException: Failed to add artifact: artifact id: 4258a2ab-ce6e-468d-9855-56ff70d20ad8. Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Unable to put resource Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User sbyangtw@yahoo.com.tw does not have authorization to update the collection /_system/governance/apimgt/applicationdata.我将角色每个人的权限设置为所有权限。
我尝试进入API并创建一个新的应用程序,它已经完成,但仍然不能将API部署到Publisher。
谢谢
汤姆
发布于 2016-05-11 10:08:58
API管理器使用注册表侦听器对其自己的注册表路径授予权限。但是,当您创建一个用户和来自IS侧的角色时,侦听器将不会得到执行。因此,不会为该特定用户分配这些注册表路径所需的权限。有两个解决办法。
1您可以通过API管理器控制台创建用户和角色。
https://stackoverflow.com/questions/37135406
复制相似问题