What I wanna do is:
1.SSO与wso2身份服务器5.1.0和wso2 API管理器1.10.0(完成)
参考: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 logs :
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.
我将角色的权限设置为All权限 .
我尝试去API-M Store并创建一个新的应用程序,它已经完成但仍然无法将API部署到Publisher .
谢谢
汤姆
1 回答
API管理器使用注册表侦听器为其自己的注册表路径授予权限 . 但是当你创建一个用户和来自IS端的角色时,监听器将无法执行 . 因此,将不会为那个特定用户分配那些注册表路径所需的权限 . 有两种解决方法 .
1您可以通过API管理器控制台创建用户和角色 .