无法登录WSO2 G-Reg商店

时间:2015-11-18 03:12:34

标签: wso2 wso2greg

我正在尝试设置wso2 Governance Registry(5.1.0)的试验实例。我已经在使用VMWare Fusion 8的本地计算机上运行的CentOS VM上安装了GREG。我还没有更新任何配置,只需解压缩存档并启动服务。在我尝试登录商店或发布商应用程序之前,一切似乎都很顺利。

我可以通过访客的静态IP访问应用的目标网页。我尝试登录,一旦我提供凭据(管理员/管理员),我就被重定向到错误页面,说明:

"Safari can't access localhost:9443/store/acs"

http_access_logs提供以下内容:

GET /authenticationendpoint/samlsso_notification.do?status=Error+when+processing+the+authentication+request%21&statusMsg=Please+try+login+again.&SAMLResponse=fZJNT8MwDIbv%2FIqQ%2Bz5asQlFaycETJrELmzswC1LvDY0jUuc8vHvybpNQA%2BTokh%2BZft9Ymc2%2F6ot%2BwBPBl3Gk%2BGYM3AKtXFFxl82i8Etn%2BdXM5K1TRvxDNSgI2DLh4yj0lhVdqcrlI2Bxpa1kgU4MLBrbFXvi31V6DfF2ZKohaWjIF3IeDpOJoMkiWeTTEU6EclkmN5MXznbnjnSA0ckcySOzhlvvRMoyZBwsgYSQYn13epJxFTReAyo0PL8CCo6Q88W6GsZLtceFKMH%2By5VgAsmfP%2FzvlwuicCHCM1zi0raEinMRn8p8vPw1kGGlnrhPWpgW2lbuOxDXfZpARo8H%2FUarYAoTj9%2F9B49%2ByzBsTgWFdW4ShZKYLKNd3yfkgde5uG9BQrXJ9p%2Bn578G5%2F%2FQP4D HTTP/1.1" 405 1065 "https://192.168.222.215:9443/store/pages/sso-login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7"

碳日志中偶尔会出现错误,但它们似乎与登录尝试无关:

TID: [-1234] [] [2015-11-11 11:33:16,785] ERROR {org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} - Failed to retrieve sessionDTO from the cache for key dde85e96-cd14-497e-9f00-c95bf093fd07 {org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet}

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:2)

我可以通过更新以下文件来解决此问题: $CARBON_HOME/repository/conf/identity/sso-idp-config.xml

我修改了SSOIdentityProviderConfig中每个ServiceProviders的AssertionConsumerService标记。我用guest虚拟机的静态IP替换了localhost。

举个例子: <AssertionConsumerService>https://<guest_ip>:9443/social/acs</AssertionConsumerService>