|
74 | 74 | "exclude": [
|
75 | 75 | "*.sln"
|
76 | 76 | ]
|
77 |
| - }, |
78 |
| - { |
79 |
| - "condition": "(!IndividualLocalAuth || UseLocalDB)", |
80 |
| - "exclude": [ |
81 |
| - "Server/app.db" |
82 |
| - ] |
83 |
| - }, |
84 |
| - { |
85 |
| - "condition": "(!IndividualLocalAuth)", |
86 |
| - "exclude": [ |
87 |
| - "Server/Data/SqlLite/**", |
88 |
| - "Server/Data/SqlServer/**", |
89 |
| - "Server/Data/ApplicationDbContext.cs", |
90 |
| - "Server/Areas/**" |
91 |
| - ] |
92 |
| - }, |
93 |
| - { |
94 |
| - "condition": "(IndividualLocalAuth && UseLocalDB)", |
95 |
| - "rename": { |
96 |
| - "Server/Data/SqlServer/": "Server/Data/Migrations/" |
97 |
| - }, |
98 |
| - "exclude": [ |
99 |
| - "Server/Data/SqlLite/**" |
100 |
| - ] |
101 |
| - }, |
102 |
| - { |
103 |
| - "condition": "(IndividualLocalAuth && !UseLocalDB)", |
104 |
| - "rename": { |
105 |
| - "Server/Data/SqlLite/": "Server/Data/Migrations/" |
106 |
| - }, |
107 |
| - "exclude": [ |
108 |
| - "Server/Data/SqlServer/**" |
109 |
| - ] |
110 |
| - }, |
111 |
| - { |
112 |
| - "condition": "(NoAuth && Hosted)", |
113 |
| - "rename": { |
114 |
| - "Client/Shared/MainLayout.NoAuth.razor": "Client/Shared/MainLayout.razor" |
115 |
| - }, |
116 |
| - "exclude": [ |
117 |
| - "Client/Shared/LoginDisplay.*.razor", |
118 |
| - "Client/Shared/MainLayout.Auth.razor" |
119 |
| - ] |
120 |
| - }, |
121 |
| - { |
122 |
| - "condition": "(!Hosted)", |
123 |
| - "rename": { |
124 |
| - "Client/Shared/MainLayout.NoAuth.razor": "Shared/MainLayout.razor" |
125 |
| - }, |
126 |
| - "exclude": [ |
127 |
| - "Client/Shared/LoginDisplay.*.razor", |
128 |
| - "Client/Shared/MainLayout.Auth.razor" |
129 |
| - ] |
130 |
| - }, |
131 |
| - { |
132 |
| - "condition": "(!NoAuth && Hosted)", |
133 |
| - "rename": { |
134 |
| - "Client/Shared/MainLayout.Auth.razor": "Client/Shared/MainLayout.razor" |
135 |
| - }, |
136 |
| - "exclude": [ |
137 |
| - "Client/Shared/MainLayout.NoAuth.razor" |
138 |
| - ] |
139 |
| - }, |
140 |
| - { |
141 |
| - "condition": "(IndividualLocalAuth)", |
142 |
| - "rename": { |
143 |
| - "Client/Shared/LoginDisplay.IndividualLocalAuth.razor": "Client/Shared/LoginDisplay.razor" |
144 |
| - } |
145 |
| - }, |
146 |
| - { |
147 |
| - "condition": "(NoAuth)", |
148 |
| - "exclude": [ |
149 |
| - "Client/Services/HostAuthenticationStateProvider.cs", |
150 |
| - "Server/Controllers/UserController.cs", |
151 |
| - "Shared/Authorization/*" |
152 |
| - ] |
153 | 77 | }
|
154 | 78 | ]
|
155 | 79 | }
|
|
183 | 107 | "datatype": "bool",
|
184 | 108 | "defaultValue": "false",
|
185 | 109 | "description": "If specified, includes an ASP.NET Core host for the Blazor app."
|
186 |
| - }, |
187 |
| - "auth": { |
188 |
| - "type": "parameter", |
189 |
| - "datatype": "choice", |
190 |
| - "choices": [ |
191 |
| - { |
192 |
| - "choice": "None", |
193 |
| - "description": "No authentication" |
194 |
| - }, |
195 |
| - { |
196 |
| - "choice": "Individual", |
197 |
| - "description": "Individual authentication" |
198 |
| - } |
199 |
| - ], |
200 |
| - "defaultValue": "None", |
201 |
| - "description": "The type of authentication to use" |
202 |
| - }, |
203 |
| - "UserSecretsId": { |
204 |
| - "type": "parameter", |
205 |
| - "datatype": "string", |
206 |
| - "replaces": "aspnet-BlazorServerWeb-CSharp-53bc9b9d-9d6a-45d4-8429-2a2761773502", |
207 |
| - "defaultValue": "aspnet-BlazorServerWeb-CSharp-53bc9b9d-9d6a-45d4-8429-2a2761773502", |
208 |
| - "description": "The ID to use for secrets (use with OrgReadAccess or Individual auth)." |
209 |
| - }, |
210 |
| - "ExcludeLaunchSettings": { |
211 |
| - "type": "parameter", |
212 |
| - "datatype": "bool", |
213 |
| - "defaultValue": "false", |
214 |
| - "description": "Whether to exclude launchSettings.json from the generated template." |
215 |
| - }, |
216 |
| - "HttpPort": { |
217 |
| - "type": "parameter", |
218 |
| - "datatype": "integer", |
219 |
| - "description": "Port number to use for the HTTP endpoint in launchSettings.json." |
220 |
| - }, |
221 |
| - "HttpPortGenerated": { |
222 |
| - "type": "generated", |
223 |
| - "generator": "port" |
224 |
| - }, |
225 |
| - "HttpPortReplacer": { |
226 |
| - "type": "generated", |
227 |
| - "generator": "coalesce", |
228 |
| - "parameters": { |
229 |
| - "sourceVariableName": "HttpPort", |
230 |
| - "fallbackVariableName": "HttpPortGenerated" |
231 |
| - }, |
232 |
| - "replaces": "8080" |
233 |
| - }, |
234 |
| - "HttpsPort": { |
235 |
| - "type": "parameter", |
236 |
| - "datatype": "integer", |
237 |
| - "description": "Port number to use for the HTTPS endpoint in launchSettings.json. This option is only applicable when the parameter no-https is not used (no-https will be ignored if either IndividualAuth or OrganizationalAuth is used)." |
238 |
| - }, |
239 |
| - "HttpsPortGenerated": { |
240 |
| - "type": "generated", |
241 |
| - "generator": "port", |
242 |
| - "parameters": { |
243 |
| - "low": 44300, |
244 |
| - "high": 44399 |
245 |
| - } |
246 |
| - }, |
247 |
| - "HttpsPortReplacer": { |
248 |
| - "type": "generated", |
249 |
| - "generator": "coalesce", |
250 |
| - "parameters": { |
251 |
| - "sourceVariableName": "HttpsPort", |
252 |
| - "fallbackVariableName": "HttpsPortGenerated" |
253 |
| - }, |
254 |
| - "replaces": "44300" |
255 |
| - }, |
256 |
| - "IndividualLocalAuth": { |
257 |
| - "type": "computed", |
258 |
| - "value": "(auth == \"Individual\")" |
259 |
| - }, |
260 |
| - "NoAuth": { |
261 |
| - "type": "computed", |
262 |
| - "value": "(!(IndividualAuth))" |
263 |
| - }, |
264 |
| - "IndividualAuth": { |
265 |
| - "type": "computed", |
266 |
| - "value": "(IndividualLocalAuth)" |
267 |
| - }, |
268 |
| - "RequiresHttps": { |
269 |
| - "type": "computed", |
270 |
| - "value": "(IndividualAuth || !NoHttps)" |
271 |
| - }, |
272 |
| - "NoHttps": { |
273 |
| - "type": "parameter", |
274 |
| - "datatype": "bool", |
275 |
| - "defaultValue": "false", |
276 |
| - "description": "Whether to turn off HTTPS. This option only applies if Individual, IndividualB2C, SingleOrg, or MultiOrg aren't used for --auth." |
277 |
| - }, |
278 |
| - "UseLocalDB": { |
279 |
| - "type": "parameter", |
280 |
| - "datatype": "bool", |
281 |
| - "defaultValue": "false", |
282 |
| - "description": "Whether to use LocalDB instead of SQLite. This option only applies if --auth Individual or --auth IndividualB2C is specified." |
283 |
| - }, |
284 |
| - "copyrightYear": { |
285 |
| - "type": "generated", |
286 |
| - "generator": "now", |
287 |
| - "replaces": "copyrightYear", |
288 |
| - "parameters": { |
289 |
| - "format": "yyyy" |
290 |
| - } |
291 | 110 | }
|
292 | 111 | },
|
293 | 112 | "tags": {
|
|
0 commit comments