2016-05-10 32 views
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

參考:https://docs.wso2.com/display/IS510/How+To%3A+Login+to+the+Identity+Server+using+Facebook+Credentials

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。

感謝

湯姆

回答

0

API管理器使用註冊表聽衆給予許可自己的註冊表路徑。但是當你創建一個用戶並且來自IS端的角色時,這個監聽器將不會得到執行。因此,這些註冊表路徑將不會被分配給該特定用戶所需的權限。 有兩種解決方法。

1您可以通過API管理器控制檯創建用戶和角色。

  1. 您可以在IS上安裝API管理器功能。
+0

在我將Identity Server設置爲API-M的密鑰管理器後,它現在可以工作了。謝謝 –

相關問題