如何删除 WSO2 Identity Server 中的租户? [英] How to delete tenants in WSO2 Identity Server?

查看:24
本文介绍了如何删除 WSO2 Identity Server 中的租户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 v 4.6.0 中,我们无法通过 UI 删除tenats,只能禁用.但是,我看到 TenantMgtAdminService 肥皂服务上有一个 deleteTenant 方法.

In v 4.6.0, we cannot delete tenats through the UI, only disable. However, I see there is a deleteTenant method on the TenantMgtAdminService soap service.

我尝试调用此服务,但出现错误.从日志来看,它有:

I have tried to call this service, but I get an error. From the logs, it has:

{org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService} - Error deleting tenant with domain: test7.tenant and tenant id: 136. {org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService} 
java.lang.NullPointerException 
at org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.deleteTenant(TenantMgtAdminService.java:520) 

查看源代码,我认为这可能是一个缺陷,因为空指针异常似乎是由于尝试访问第 520 行附近的计费服务"引起的.

Looking at the source code, I think this might be a defect as the null pointer exception seems to be caused by trying to access a "billing service" around line 520.

所以我想知道我是否可以将我的租户配置为这种计费服务不会为空,或者还有其他一些解决方法?

So I wonder if I could configured my tenant in a way that this billing service would not be null, or of there is some other workaround?

谢谢

推荐答案

在RemoteTenantManagerService中使用deleteTenant操作并重启服务器.;)重新启动服务器将清除缓存并允许您添加具有相同域名的新租户.

Use deleteTenant operation in the RemoteTenantManagerService and restart the server. ;) Restarting the server will clear the cache and allow you to add new tenants with the same domain name.

这篇关于如何删除 WSO2 Identity Server 中的租户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆