Skip to content

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
}

[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.

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

}

[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