File tree Expand file tree Collapse file tree 3 files changed +38
-23
lines changed Expand file tree Collapse file tree 3 files changed +38
-23
lines changed Original file line number Diff line number Diff line change @@ -27,4 +27,8 @@ yarn-error.log*
27
27
28
28
# vscode debug logs
29
29
debug.log
30
- app.log
30
+ app.log
31
+
32
+ # Cursor IDE
33
+ .cursor /rules
34
+
Original file line number Diff line number Diff line change @@ -70,7 +70,11 @@ const CippAppPermissionBuilder = ({
70
70
setExpanded ( newExpanded ? panel : false ) ;
71
71
} ;
72
72
73
- const deprecatedServicePrincipals = [ "00000002-0000-0000-c000-000000000000" ] ;
73
+ const deprecatedServicePrincipals = [
74
+ "00000002-0000-0000-c000-000000000000" , // Windows Azure Active Directory
75
+ "a0c73c16-a7e3-4564-9a95-2bdf47383716" , // Microsoft Exchange Online Remote PowerShell
76
+ "1b730954-1685-4b74-9bfd-dac224a7b894" , // Azure Active Directory PowerShell
77
+ ] ;
74
78
75
79
const currentSelectedSp = useWatch ( { control : formControl . control , name : "servicePrincipal" } ) ;
76
80
@@ -901,7 +905,7 @@ const CippAppPermissionBuilder = ({
901
905
) }
902
906
</ CippOffCanvas >
903
907
{ calloutMessage && (
904
- < Grid container sx = { { my : 3 } } >
908
+ < Grid container >
905
909
< Grid size = { { xl : 8 , xs : 12 } } >
906
910
< Alert variant = "outlined" color = "info" onClose = { ( ) => setCalloutMessage ( null ) } >
907
911
{ calloutMessage }
@@ -911,7 +915,7 @@ const CippAppPermissionBuilder = ({
911
915
) }
912
916
913
917
{ isDeprecatedSp && (
914
- < Grid container sx = { { my : 3 } } >
918
+ < Grid container >
915
919
< Grid size = { { xl : 8 , xs : 12 } } >
916
920
< Alert color = "error" icon = { < WarningAmberOutlined /> } >
917
921
{ currentSelectedSp . label } is deprecated and cannot be added. Please select a
Original file line number Diff line number Diff line change @@ -6,6 +6,21 @@ import { CippFormCondition } from "/src/components/CippComponents/CippFormCondit
6
6
import { CippFormDomainSelector } from "../CippComponents/CippFormDomainSelector" ;
7
7
import { CippFormUserSelector } from "../CippComponents/CippFormUserSelector" ;
8
8
9
+ const DynamicMembershipRules = ( { formControl } ) => (
10
+ < Grid item size = { { xs : 12 } } >
11
+ < CippFormComponent
12
+ type = "textField"
13
+ label = "Dynamic Group Parameters"
14
+ name = "membershipRules"
15
+ formControl = { formControl }
16
+ placeholder = "Enter dynamic group parameters syntax"
17
+ multiline
18
+ rows = { 4 }
19
+ fullWidth
20
+ />
21
+ </ Grid >
22
+ ) ;
23
+
9
24
const CippAddGroupForm = ( props ) => {
10
25
const { formControl } = props ;
11
26
@@ -101,25 +116,17 @@ const CippAddGroupForm = (props) => {
101
116
/>
102
117
</ Grid >
103
118
</ CippFormCondition >
104
- < CippFormCondition
105
- formControl = { formControl }
106
- field = "groupType"
107
- compareType = "contains"
108
- compareValue = "dynamic"
109
- >
110
- < Grid item size = { { xs : 12 } } >
111
- < CippFormComponent
112
- type = "textField"
113
- label = "Dynamic Group Parameters"
114
- name = "membershipRules"
115
- formControl = { formControl }
116
- placeholder = "Enter dynamic group parameters syntax"
117
- multiline
118
- rows = { 4 }
119
- fullWidth
120
- />
121
- </ Grid >
122
- </ CippFormCondition >
119
+ { [ "dynamic" , "dynamicDistribution" , "m365" ] . map ( ( groupType ) => (
120
+ < CippFormCondition
121
+ key = { groupType }
122
+ formControl = { formControl }
123
+ field = "groupType"
124
+ compareType = "is"
125
+ compareValue = { groupType }
126
+ >
127
+ < DynamicMembershipRules formControl = { formControl } />
128
+ </ CippFormCondition >
129
+ ) ) }
123
130
</ Grid >
124
131
) ;
125
132
} ;
You can’t perform that action at this time.
0 commit comments