-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add the config to modify the primary user store domain name in consol…
…e app
- Loading branch information
1 parent
2236b69
commit 00df8aa
Showing
52 changed files
with
421 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). | ||
* Copyright (c) 2024-2025, WSO2 LLC. (https://www.wso2.com). | ||
* | ||
* WSO2 LLC. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
|
@@ -26,7 +26,6 @@ import { UserRolesList } from "@wso2is/admin.users.v1/components/user-roles-list | |
import { UserSessions } from "@wso2is/admin.users.v1/components/user-sessions"; | ||
import { AdminAccountTypes, UserManagementConstants } from "@wso2is/admin.users.v1/constants/user-management-constants"; | ||
import { UserManagementUtils } from "@wso2is/admin.users.v1/utils/user-management-utils"; | ||
import { UserstoreConstants } from "@wso2is/core/constants"; | ||
import { hasRequiredScopes, isFeatureEnabled } from "@wso2is/core/helpers"; | ||
Check failure on line 29 in features/admin.administrators.v1/components/guests/edit-guest-user.tsx
|
||
import { AlertInterface, ProfileInfoInterface, SBACInterface } from "@wso2is/core/models"; | ||
import { addAlert } from "@wso2is/core/store"; | ||
|
@@ -95,6 +94,8 @@ export const EditGuestUser: FunctionComponent<EditGuestUserPropsInterface> = ( | |
const [ adminUserType, setAdminUserType ] = useState<string>(AdminAccountTypes.EXTERNAL); | ||
|
||
const authenticatedUserTenanted: string = useSelector((state: AppState) => state?.auth?.username); | ||
const primaryUserStoreDomainName: string = useSelector((state: AppState) => | ||
state?.config?.ui?.primaryUserStoreDomainName); | ||
|
||
const authenticatedUser: string = useMemo(() => { | ||
const authenticatedUserComponents: string[] = authenticatedUserTenanted.split("@"); | ||
|
@@ -120,7 +121,7 @@ export const EditGuestUser: FunctionComponent<EditGuestUserPropsInterface> = ( | |
|
||
const userStore: string = user?.userName?.split("/").length > 1 | ||
? user?.userName?.split("/")[ 0 ] | ||
: UserstoreConstants.PRIMARY_USER_STORE; | ||
: primaryUserStoreDomainName; | ||
|
||
setReadOnlyUserStore(readOnlyUserStores?.includes(userStore?.toString())); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.