File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
eFormAPI/eFormAPI.Web/Controllers/Eforms Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11using System . IO ;
22using eFormAPI . Web . Infrastructure ;
3+ using Microsoft . AspNetCore . Authentication . Cookies ;
34using Microsoft . AspNetCore . Authorization ;
45using Microsoft . AspNetCore . Mvc ;
56using Microting . eFormApi . BasePn . Infrastructure . Helpers ;
@@ -11,7 +12,8 @@ public class AudioController : Controller
1112 {
1213 [ HttpGet ]
1314 [ Route ( "api/audio/eform-audio" ) ]
14- [ Authorize ( Policy = AuthConsts . EformPolicies . Cases . CaseRead ) ]
15+ [ Authorize ( AuthenticationSchemes = CookieAuthenticationDefaults . AuthenticationScheme ,
16+ Policy = AuthConsts . EformPolicies . Cases . CasesRead ) ]
1517 public IActionResult GetAudio ( string fileName )
1618 {
1719 var filePath = PathHelper . GetAudioPath ( fileName ) ;
You can’t perform that action at this time.
0 commit comments