@@ -20,7 +20,7 @@ import { Stack } from "components/Stack/Stack"
20
20
import React from "react"
21
21
22
22
const AuthSettingsPage : React . FC = ( ) => {
23
- const { deploymentFlags } = useDeploySettings ( )
23
+ const { deploymentConfig } = useDeploySettings ( )
24
24
25
25
return (
26
26
< >
@@ -34,7 +34,7 @@ const AuthSettingsPage: React.FC = () => {
34
34
/>
35
35
36
36
< Badges >
37
- { deploymentFlags . oidc_client_id . value ? (
37
+ { deploymentConfig . oidc_client_id . value ? (
38
38
< EnabledBadge />
39
39
) : (
40
40
< DisabledBadge />
@@ -53,100 +53,100 @@ const AuthSettingsPage: React.FC = () => {
53
53
< TableRow >
54
54
< TableCell >
55
55
< OptionName >
56
- { deploymentFlags . oidc_client_id . name }
56
+ { deploymentConfig . oidc_client_id . name }
57
57
</ OptionName >
58
58
< OptionDescription >
59
- { deploymentFlags . oidc_client_id . description }
59
+ { deploymentConfig . oidc_client_id . description }
60
60
</ OptionDescription >
61
61
</ TableCell >
62
62
63
63
< TableCell >
64
64
< OptionValue >
65
- { deploymentFlags . oidc_client_id . value }
65
+ { deploymentConfig . oidc_client_id . value }
66
66
</ OptionValue >
67
67
</ TableCell >
68
68
</ TableRow >
69
69
70
70
< TableRow >
71
71
< TableCell >
72
72
< OptionName >
73
- { deploymentFlags . oidc_client_secret . name }
73
+ { deploymentConfig . oidc_client_secret . name }
74
74
</ OptionName >
75
75
< OptionDescription >
76
- { deploymentFlags . oidc_client_secret . description }
76
+ { deploymentConfig . oidc_client_secret . description }
77
77
</ OptionDescription >
78
78
</ TableCell >
79
79
80
80
< TableCell >
81
81
< OptionValue >
82
- { deploymentFlags . oidc_client_secret . value }
82
+ { deploymentConfig . oidc_client_secret . value }
83
83
</ OptionValue >
84
84
</ TableCell >
85
85
</ TableRow >
86
86
87
87
< TableRow >
88
88
< TableCell >
89
89
< OptionName >
90
- { deploymentFlags . oidc_allow_signups . name }
90
+ { deploymentConfig . oidc_allow_signups . name }
91
91
</ OptionName >
92
92
< OptionDescription >
93
- { deploymentFlags . oidc_allow_signups . description }
93
+ { deploymentConfig . oidc_allow_signups . description }
94
94
</ OptionDescription >
95
95
</ TableCell >
96
96
97
97
< TableCell >
98
98
< OptionValue >
99
- { deploymentFlags . oidc_allow_signups . value . toString ( ) }
99
+ { deploymentConfig . oidc_allow_signups . value . toString ( ) }
100
100
</ OptionValue >
101
101
</ TableCell >
102
102
</ TableRow >
103
103
104
104
< TableRow >
105
105
< TableCell >
106
106
< OptionName >
107
- { deploymentFlags . oidc_email_domain . name }
107
+ { deploymentConfig . oidc_email_domain . name }
108
108
</ OptionName >
109
109
< OptionDescription >
110
- { deploymentFlags . oidc_email_domain . description }
110
+ { deploymentConfig . oidc_email_domain . description }
111
111
</ OptionDescription >
112
112
</ TableCell >
113
113
114
114
< TableCell >
115
115
< OptionValue >
116
- { deploymentFlags . oidc_email_domain . value }
116
+ { deploymentConfig . oidc_email_domain . value }
117
117
</ OptionValue >
118
118
</ TableCell >
119
119
</ TableRow >
120
120
121
121
< TableRow >
122
122
< TableCell >
123
123
< OptionName >
124
- { deploymentFlags . oidc_issuer_url . name }
124
+ { deploymentConfig . oidc_issuer_url . name }
125
125
</ OptionName >
126
126
< OptionDescription >
127
- { deploymentFlags . oidc_issuer_url . description }
127
+ { deploymentConfig . oidc_issuer_url . description }
128
128
</ OptionDescription >
129
129
</ TableCell >
130
130
131
131
< TableCell >
132
132
< OptionValue >
133
- { deploymentFlags . oidc_issuer_url . value }
133
+ { deploymentConfig . oidc_issuer_url . value }
134
134
</ OptionValue >
135
135
</ TableCell >
136
136
</ TableRow >
137
137
138
138
< TableRow >
139
139
< TableCell >
140
- < OptionName > { deploymentFlags . oidc_scopes . name } </ OptionName >
140
+ < OptionName > { deploymentConfig . oidc_scopes . name } </ OptionName >
141
141
< OptionDescription >
142
- { deploymentFlags . oidc_scopes . description }
142
+ { deploymentConfig . oidc_scopes . description }
143
143
</ OptionDescription >
144
144
</ TableCell >
145
145
146
146
< TableCell >
147
147
< OptionValue >
148
148
< ul >
149
- { deploymentFlags . oidc_scopes . value . map ( ( scope ) => (
149
+ { deploymentConfig . oidc_scopes . value . map ( ( scope ) => (
150
150
< li key = { scope } > { scope } </ li >
151
151
) ) }
152
152
</ ul >
@@ -167,7 +167,7 @@ const AuthSettingsPage: React.FC = () => {
167
167
/>
168
168
169
169
< Badges >
170
- { deploymentFlags . oauth2_github_client_id . value ? (
170
+ { deploymentConfig . oauth2_github_client_id . value ? (
171
171
< EnabledBadge />
172
172
) : (
173
173
< DisabledBadge />
@@ -186,62 +186,62 @@ const AuthSettingsPage: React.FC = () => {
186
186
< TableRow >
187
187
< TableCell >
188
188
< OptionName >
189
- { deploymentFlags . oauth2_github_client_id . name }
189
+ { deploymentConfig . oauth2_github_client_id . name }
190
190
</ OptionName >
191
191
< OptionDescription >
192
- { deploymentFlags . oauth2_github_client_id . description }
192
+ { deploymentConfig . oauth2_github_client_id . description }
193
193
</ OptionDescription >
194
194
</ TableCell >
195
195
196
196
< TableCell >
197
197
< OptionValue >
198
- { deploymentFlags . oauth2_github_client_id . value }
198
+ { deploymentConfig . oauth2_github_client_id . value }
199
199
</ OptionValue >
200
200
</ TableCell >
201
201
</ TableRow >
202
202
203
203
< TableRow >
204
204
< TableCell >
205
205
< OptionName >
206
- { deploymentFlags . oauth2_github_client_secret . name }
206
+ { deploymentConfig . oauth2_github_client_secret . name }
207
207
</ OptionName >
208
208
< OptionDescription >
209
- { deploymentFlags . oauth2_github_client_secret . description }
209
+ { deploymentConfig . oauth2_github_client_secret . description }
210
210
</ OptionDescription >
211
211
</ TableCell >
212
212
213
213
< TableCell >
214
214
< OptionValue >
215
- { deploymentFlags . oauth2_github_client_secret . value }
215
+ { deploymentConfig . oauth2_github_client_secret . value }
216
216
</ OptionValue >
217
217
</ TableCell >
218
218
</ TableRow >
219
219
220
220
< TableRow >
221
221
< TableCell >
222
222
< OptionName >
223
- { deploymentFlags . oauth2_github_allow_signups . name }
223
+ { deploymentConfig . oauth2_github_allow_signups . name }
224
224
</ OptionName >
225
225
< OptionDescription >
226
- { deploymentFlags . oauth2_github_allow_signups . description }
226
+ { deploymentConfig . oauth2_github_allow_signups . description }
227
227
</ OptionDescription >
228
228
</ TableCell >
229
229
230
230
< TableCell >
231
231
< OptionValue >
232
- { deploymentFlags . oauth2_github_allow_signups . value . toString ( ) }
232
+ { deploymentConfig . oauth2_github_allow_signups . value . toString ( ) }
233
233
</ OptionValue >
234
234
</ TableCell >
235
235
</ TableRow >
236
236
237
237
< TableRow >
238
238
< TableCell >
239
239
< OptionName >
240
- { deploymentFlags . oauth2_github_allowed_organizations . name }
240
+ { deploymentConfig . oauth2_github_allowed_organizations . name }
241
241
</ OptionName >
242
242
< OptionDescription >
243
243
{
244
- deploymentFlags . oauth2_github_allowed_organizations
244
+ deploymentConfig . oauth2_github_allowed_organizations
245
245
. description
246
246
}
247
247
</ OptionDescription >
@@ -250,7 +250,7 @@ const AuthSettingsPage: React.FC = () => {
250
250
< TableCell >
251
251
< OptionValue >
252
252
< ul >
253
- { deploymentFlags . oauth2_github_allowed_organizations . value . map (
253
+ { deploymentConfig . oauth2_github_allowed_organizations . value . map (
254
254
( org ) => (
255
255
< li key = { org } > { org } </ li >
256
256
) ,
@@ -263,17 +263,17 @@ const AuthSettingsPage: React.FC = () => {
263
263
< TableRow >
264
264
< TableCell >
265
265
< OptionName >
266
- { deploymentFlags . oauth2_github_allowed_teams . name }
266
+ { deploymentConfig . oauth2_github_allowed_teams . name }
267
267
</ OptionName >
268
268
< OptionDescription >
269
- { deploymentFlags . oauth2_github_allowed_teams . description }
269
+ { deploymentConfig . oauth2_github_allowed_teams . description }
270
270
</ OptionDescription >
271
271
</ TableCell >
272
272
273
273
< TableCell >
274
274
< OptionValue >
275
275
< ul >
276
- { deploymentFlags . oauth2_github_allowed_teams . value . map (
276
+ { deploymentConfig . oauth2_github_allowed_teams . value . map (
277
277
( team ) => (
278
278
< li key = { team } > { team } </ li >
279
279
) ,
@@ -286,19 +286,19 @@ const AuthSettingsPage: React.FC = () => {
286
286
< TableRow >
287
287
< TableCell >
288
288
< OptionName >
289
- { deploymentFlags . oauth2_github_enterprise_base_url . name }
289
+ { deploymentConfig . oauth2_github_enterprise_base_url . name }
290
290
</ OptionName >
291
291
< OptionDescription >
292
292
{
293
- deploymentFlags . oauth2_github_enterprise_base_url
293
+ deploymentConfig . oauth2_github_enterprise_base_url
294
294
. description
295
295
}
296
296
</ OptionDescription >
297
297
</ TableCell >
298
298
299
299
< TableCell >
300
300
< OptionValue >
301
- { deploymentFlags . oauth2_github_enterprise_base_url . value }
301
+ { deploymentConfig . oauth2_github_enterprise_base_url . value }
302
302
</ OptionValue >
303
303
</ TableCell >
304
304
</ TableRow >
0 commit comments