[英]Wso2 Identity server Soap Remote user store management admin service throws access denied error
I have setup wso2 identity server with default h2 database configuration. 我已使用默认的h2数据库配置安装了wso2身份服务器。 when i tired to access its RemoteUserStoreManagerService.getTenantIdofUser() soap admin service with super tentant admin credentials 'admin/admin', its throws 'access denied' error.I found that error is raised because of 'super tenant' id is not set to zero(0). 当我厌倦了使用超级租户管理员凭据``admin / admin''访问其RemoteUserStoreManagerService.getTenantIdofUser()肥皂管理服务时,它抛出了``拒绝访问''错误。我发现由于未设置``超级租户''ID而引发错误零(0)。 it has been set as '-1234' at backend. 在后端将其设置为“ -1234”。 Kindly help in resolving this issue. 请帮助解决此问题。
As i know, getTenantIdofUser
is a depreciated in WSO2 and it will not work properly. 据我所知, getTenantIdofUser
在WSO2中已贬值,它将无法正常工作。 Theoretically, you can not retrieve the tenant id by providing the username. 从理论上讲,您无法通过提供用户名来检索租户ID。 Because username is unique across tenants. 因为用户名在租户之间是唯一的。 There can be same username in two different tenant. 两个不同的租户中可以有相同的用户名。 As you mentioned, there is some issue in the code as well. 如您所述,代码中也存在一些问题。 Super tenant id must be -1234
. 超级租户ID必须为-1234
。 However fixing this issue, would not provide successful response from the getTenantIdofUser
as it is already depreciated. 但是,解决此问题后,由于getTenantIdofUser
已被折旧,因此无法提供成功的响应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.