Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(SSO): don't display user's domain in UI (#4718)

boojackd4891d373b63
diff --git a/frontend/src/components/MemberTable.vue b/frontend/src/components/MemberTable.vue
index 1696b5862e..530f08122a 100644
--- a/frontend/src/components/MemberTable.vue
+++ b/frontend/src/components/MemberTable.vue
@@ -57,10 +57,7 @@
:to="`/u/${member.principal.id}`"
class="normal-link"
>
- {{ member.principal.name
- }}<span class="text-gray-400">{{
- getUserRelatedDomainName(member.principal)
- }}</span>
+ {{ member.principal.name }}
</router-link>
<span
v-if="currentUser.id == member.principal.id"
@@ -188,7 +185,6 @@ import {
useMemberStore,
usePrincipalStore,
pushNotification,
- useIdentityProviderStore,
} from "@/store";
const columnList = computed(() => [
@@ -221,7 +217,6 @@ export default defineComponent({
const { t } = useI18n();
const currentUser = useCurrentUser();
const memberStore = useMemberStore();
- const identityProviderStore = useIdentityProviderStore();
const hasRBACFeature = featureToRef("bb.feature.rbac");
@@ -280,16 +275,6 @@ export default defineComponent({
);
});
- const getUserRelatedDomainName = (principal: Principal) => {
- const idp = identityProviderStore.getIdentityProviderByName(
- `idps/${principal.identityProviderName}`
- );
- if (!idp) {
- return "";
- }
- return `@${idp.domain}`;
- };
-
const allowChangeRole = (member: Member) => {
if (member.principal.id === SYSTEM_BOT_ID) {
return false;
@@ -407,7 +392,6 @@ export default defineComponent({
hasRBACFeature,
dataSource,
allowEdit,
- getUserRelatedDomainName,
allowChangeRole,
changeRoleTooltip,
allowDeactivateMember,
diff --git a/frontend/src/views/ProfileDashboard.vue b/frontend/src/views/ProfileDashboard.vue
index 1332761dc9..5220e2cf57 100644
--- a/frontend/src/views/ProfileDashboard.vue
+++ b/frontend/src/views/ProfileDashboard.vue
@@ -74,10 +74,7 @@
/>
<!-- pb-1.5 is to avoid flicking when entering/existing the editing state -->
<h1 v-else class="pb-1.5 text-2xl font-bold text-main truncate">
- {{ principal.name
- }}<span class="text-gray-400">{{
- getUserRelatedDomainName()
- }}</span>
+ {{ principal.name }}
</h1>
<span
v-if="principal.type === 'SERVICE_ACCOUNT'"
@@ -203,7 +200,6 @@ import { hasWorkspacePermission } from "../utils";
import {
featureToRef,
useCurrentUser,
- useIdentityProviderStore,
usePrincipalStore,
useUserStore,
} from "@/store";
@@ -222,7 +218,6 @@ const props = defineProps<{
const currentUser = useCurrentUser();
const principalStore = usePrincipalStore();
const userStore = useUserStore();
-const identityProviderStore = useIdentityProviderStore();
const state = reactive<LocalState>({
editing: false,
});
@@ -270,16 +265,6 @@ const isSSOUser = computed(() => {
return userStore.userMapByName.get(name)?.identityProvider !== "";
});
-const getUserRelatedDomainName = () => {
- const idp = identityProviderStore.getIdentityProviderByName(
- `idps/${principal.value.identityProviderName}`
- );
- if (!idp) {
- return "";
- }
- return `@${idp.domain}`;
-};
-
// User can change her own info.
// Besides, owner can also change anyone's info. This is for resetting password in case user forgets.
const allowEdit = computed(() => {