Skip to content

Commit 4630ff7

Browse files
committed
fix: fix with token auth for bots
1 parent 34ca400 commit 4630ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HwProj.APIGateway/HwProj.APIGateway.API/Controllers/SolutionsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ await _coursesServiceClient.CreateCourseGroup(new CreateGroupViewModel(arrFullSt
327327
}
328328

329329
[HttpPost("automated/{courseId}")]
330-
[Authorize(Roles = Roles.LecturerOrExpertRole)]
330+
[Authorize(Roles = Roles.LecturerOrExpertRole, AuthenticationSchemes = "JwtCookie, JwtBearer")]
331331
[ProducesResponseType(typeof(void), (int)HttpStatusCode.OK)]
332332
public async Task<IActionResult> PostAutomatedSolution(PostAutomatedSolutionModel model, long courseId)
333333
{

0 commit comments

Comments
 (0)