Skip to content

Commit 539555c

Browse files
committed
Fixing the audio permissions issue.
1 parent 869c31a commit 539555c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eFormAPI/eFormAPI.Web/Controllers/Eforms/AudioController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.IO;
22
using eFormAPI.Web.Infrastructure;
3+
using Microsoft.AspNetCore.Authentication.Cookies;
34
using Microsoft.AspNetCore.Authorization;
45
using Microsoft.AspNetCore.Mvc;
56
using 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);

0 commit comments

Comments
 (0)