简体   繁体   English

WSO2 APIM 3.2.0 管理门户无法访问

[英]WSO2 APIM 3.2.0 Admin Portal not accessible

I am trying to access the admin portal of wso2 by using newly created user("subuser") and role("subadmin") by following this .我想通过以下使用新创建的用户(“subuser”)和角色(“subadmin”)来访问WSO2的管理门户

Meanwhile, I am facing some other issue, Unfortunately can't able to access the same wso2 admin portal by using "admin" credentials.同时,我还面临其他一些问题,不幸的是无法使用“admin”凭据访问相同的 wso2 管理门户。 but the same can be accessible before some time(30 mins back)但在一段时间之前可以访问相同的内容(30 分钟后)

I haven't change any config file.我没有更改任何配置文件。 while login, the management console shows errors like below.登录时,管理控制台显示如下错误。

禁止错误

Note : Nothing ERROR is shown in the Log file.注意:日志文件中未显示任何错误。 I tried to restart server, system everything, unfortunately, this won't help me.我试图重新启动服务器,系统一切,不幸的是,这对我没有帮助。

Suspect that the relevant Role Mapping configurations are not updated properly in the API Manager server and causing this behavior.怀疑相关的角色映射配置没有在 API Manager 服务器中正确更新并导致此行为。

I assume that you are using API Manager 3.2.0 GA in your environment and you have created a custom role and made the Role Mappings from the Admin portal.我假设您在您的环境中使用 API Manager 3.2.0 GA,并且您已经创建了一个自定义角色并从管理门户进行了角色映射。 Can you perform the following configuration check and update the missing entries您能否执行以下配置检查并更新缺少的条目

  • Login to the Carbon Management console (/carbon) using the super admin credentials使用超级管理员凭据登录到 Carbon 管理控制台 (/carbon)

  • In the Left Pane, under Resources click Browse在左窗格中,在Resources下单击Browse

  • Go to _system > config > apimgt > applicationdata and select the tenant-conf.json转到_system > config > apimgt > applicationdata并选择tenant-conf.json

  • Select Edit as text on the next page and search for the JSON Key named: RoleMappings .在下一页选择Edit as text并搜索名为RoleMappings的 JSON Key。 If you have performed a Role Mapping from the Admin portal for your custom role, a mapping should be there as following如果您已从管理门户为您的自定义角色执行角色映射,则映射应如下所示

    "RoleMappings": { "admin": "custom-role" }
  • Update the mapping including the admin in the value as following更新映射,包括值中的admin如下

    "RoleMappings": { "admin": "admin,custom-role" }
  • Once the changes are appended, Save the content and restart the API Manager to clear the caches and load the configurations properly附加更改后,保存内容并重新启动 API Manager 以清除缓存并正确加载配置

Once restarted, try logging into the Admin portal and share the observations.重新启动后,尝试登录管理门户并分享观察结果。 A similar issue has been identified and reported under #product-apim/issues/9461#product-apim/issues/9461下发现并报告了类似的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM