@@ -12,6 +12,7 @@ namespace Microsoft.WinGet.RestSource.Functions
12
12
using System . Threading . Tasks ;
13
13
using Microsoft . AspNetCore . Http ;
14
14
using Microsoft . AspNetCore . Mvc ;
15
+ using Microsoft . Azure . Cosmos . Linq ;
15
16
using Microsoft . Azure . WebJobs ;
16
17
using Microsoft . Azure . WebJobs . Extensions . Http ;
17
18
using Microsoft . Extensions . Logging ;
@@ -69,8 +70,6 @@ public async Task<IActionResult> InstallerPostAsync(
69
70
Dictionary < string , string > headers = null ;
70
71
try
71
72
{
72
- CertificateValidationHelper . ValidateAuthentication ( req , log ) ;
73
-
74
73
// Parse Headers
75
74
headers = HeaderProcessor . ToDictionary ( req . Headers ) ;
76
75
@@ -133,8 +132,6 @@ public async Task<IActionResult> InstallerDeleteAsync(
133
132
134
133
try
135
134
{
136
- CertificateValidationHelper . ValidateAuthentication ( req , log ) ;
137
-
138
135
// Parse Headers
139
136
headers = HeaderProcessor . ToDictionary ( req . Headers ) ;
140
137
await this . dataStore . DeleteInstaller ( packageIdentifier , packageVersion , installerIdentifier ) ;
@@ -192,8 +189,6 @@ public async Task<IActionResult> InstallerPutAsync(
192
189
193
190
try
194
191
{
195
- CertificateValidationHelper . ValidateAuthentication ( req , log ) ;
196
-
197
192
// Parse Headers
198
193
headers = HeaderProcessor . ToDictionary ( req . Headers ) ;
199
194
@@ -251,7 +246,7 @@ public async Task<IActionResult> InstallerPutAsync(
251
246
[ FunctionName ( FunctionConstants . InstallerGet ) ]
252
247
public async Task < IActionResult > InstallerGetAsync (
253
248
[ HttpTrigger (
254
- AuthorizationLevel . Anonymous ,
249
+ AuthorizationLevel . Function ,
255
250
FunctionConstants . FunctionGet ,
256
251
Route = "packages/{packageIdentifier}/versions/{packageVersion}/installers/{installerIdentifier?}" ) ]
257
252
HttpRequest req ,
@@ -265,8 +260,6 @@ public async Task<IActionResult> InstallerGetAsync(
265
260
266
261
try
267
262
{
268
- CertificateValidationHelper . ValidateAuthentication ( req , log ) ;
269
-
270
263
// Parse Headers
271
264
headers = HeaderProcessor . ToDictionary ( req . Headers ) ;
272
265
0 commit comments