1
我想什麼做的是:用戶沒有授權更新集合/ _SYSTEM /管理/ apimgt /應用 -
1.SSO與WSO2身份服務器5.1.0和WSO2 API管理1.10.0(完成)
參考:https://docs.wso2.com/display/AM1100/Configuring+Single+Sign-on+with+SAML2
2.Login通過Facebook憑證(完成)WSO2 API管理器1.10.0
3.After記錄在通過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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] does not have authorization to update the collection /_system/governance/apimgt/applicationdata.
我設置角色的權限每個人都被授予全部權限。
我嘗試去API-M Store並創建一個新的應用程序,但已完成但仍無法將API部署到Publisher。
感謝
湯姆
在我將Identity Server設置爲API-M的密鑰管理器後,它現在可以工作了。謝謝 –