Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Поддержка гостевого доступа для страницы со статистикой #402

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Artem-Rzhankoff
Copy link
Collaborator

Преподаватель может делиться статистикой с неавторизованными пользователями посредством ссылки, содержащей токен для получения необходимого доступа.
image

@DedSec256 DedSec256 self-requested a review May 22, 2024 14:03
by generating a jwt and including it in the link
@Artem-Rzhankoff Artem-Rzhankoff force-pushed the student-stat-chart-token branch from a09f004 to 0c07e3d Compare May 26, 2024 13:16
public async Task<Solution[]> GetTaskSolutionsFromGroup(long groupId, long taskId)
{
return await _solutionsService.GetTaskSolutionsFromGroupAsync(taskId, groupId);
}

[HttpGet("getLecturersStat/{courseId}")]
[Authorize(AuthenticationSchemes = AuthSchemeConstants.UserIdAuthentication)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

из-за одного метода не хотелось бы править все остальные

@@ -181,6 +192,7 @@ public async Task<IActionResult> GetLecturersStat(long courseId)
}

[HttpGet("getCourseStat/{courseId}")]
[Authorize(AuthenticationSchemes = AuthSchemeConstants.GuestModeOrUseridAuthentication)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не хотелось бы давать здесь доступа больше, чем нужно

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants