-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Service Principals (#1099)
* Cleanup types * Cleanup types * Cleanup types * fix test * cleanup proxy * Added color and unknown users * revert proxy
- Loading branch information
Showing
13 changed files
with
449 additions
and
184 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
import { List } from '@equinor/eds-core-react'; | ||
import { Icon, List } from '@equinor/eds-core-react'; | ||
import { computer, group } from '@equinor/eds-icons'; | ||
import { Alert } from '../alert'; | ||
|
||
interface Props { | ||
unknownADGroups?: Array<string>; | ||
unknownADUsers?: Array<string>; | ||
} | ||
export function UnknownADGroupsAlert({ unknownADGroups }: Props) { | ||
export function UnknownADGroupsAlert({ | ||
unknownADGroups, | ||
unknownADUsers, | ||
}: Props) { | ||
return ( | ||
<> | ||
{unknownADGroups?.length > 0 && ( | ||
<Alert type="danger"> | ||
Unknown or deleted AD group(s) | ||
<List className="o-indent-list"> | ||
{unknownADGroups.map((adGroup) => ( | ||
<List.Item key={adGroup}>{adGroup}</List.Item> | ||
))} | ||
</List> | ||
</Alert> | ||
)} | ||
</> | ||
<Alert type="danger"> | ||
Unknown or deleted Entra object(s) | ||
<List className="o-indent-list"> | ||
{unknownADGroups.map((adGroup) => ( | ||
<List.Item key={adGroup}> | ||
<Icon data={group} size={16} /> {adGroup} | ||
</List.Item> | ||
))} | ||
{unknownADUsers.map((adSp) => ( | ||
<List.Item key={adSp}> | ||
<Icon data={computer} size={16} /> {adSp} | ||
</List.Item> | ||
))} | ||
</List> | ||
</Alert> | ||
); | ||
} |
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.