-
Notifications
You must be signed in to change notification settings - Fork 21
Добавление студентов на курс #587
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
Open
Salvatore112
wants to merge
45
commits into
master
Choose a base branch
from
invitedStudents
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
94f5a6b
feat: add placeholder for existing students invitation
Salvatore112 afdfa21
feat: implement invites for existent students
Salvatore112 e58e80a
style: use more consistent ui
Salvatore112 775761f
fix: fix crash when student is not found
Salvatore112 05b72de
feat: add not found students handling
Salvatore112 9456b08
Merge branch 'master' into invitedStudents
Salvatore112 eba6bf2
feat: add single method for sign up and accepting student
Salvatore112 a1b4146
chore: add newline
Salvatore112 b6576e2
refactor: get rid of extra whitespaces
Salvatore112 68ec18e
feat: add a separate component for email
Salvatore112 3bd85a0
feat: use the same method for inviting students
Salvatore112 1868e07
feat: add new students invitation
Salvatore112 2b36f7c
feat: remove extra search from fields
Salvatore112 f793bbe
chore: revert swagger changes
Salvatore112 6586d98
chore: revert changes in ts files
Salvatore112 2fc97c9
chore: replace ts files
Salvatore112 b36e912
feat: add autocomplete for students
Salvatore112 6cfa0b3
feat: make register button visible
Salvatore112 4cb7dc2
style: update ui for students invitation
Salvatore112 0b4d4af
fix: fix students autocomplete
Salvatore112 7e766de
feat: remove middle name from autocomplete
Salvatore112 5ab53e0
feat: add token creating and logging in methods
Salvatore112 aefb4f7
format: add missing whitespaces
Salvatore112 6947011
feat: adapt authlayout for more roles
Salvatore112 a629b16
feat: add token-based logging in for invited students
Salvatore112 61c7607
style: remove extra comments
Salvatore112 db0f7dc
feat: add expiration date to student token
Salvatore112 a0badd4
refactor: remove extra spaces in api.tsx
Salvatore112 acc5d60
refactor: revert style changes
Salvatore112 2e878a1
feat: make email carry over in between windows
Salvatore112 8cbc20c
refactor: merge branches in InviteStudent
Salvatore112 541709c
chore: translate error's text
Salvatore112 f1bb8e4
style: replace expertEmail to email
Salvatore112 7f68677
refactor: refactor email name in token method
Salvatore112 ea54cb2
feat: remove extra role check
Salvatore112 3f2d9f8
fix: bring back removed code
Salvatore112 cdcfbe9
refactor: remove empty line
Salvatore112 ad63659
feat: split course.tsx's functionality into multiple files
Salvatore112 459d954
refactor: use ID instead of email
Salvatore112 a4ed92e
feat: remove extra request to AuthServiceClient
Salvatore112 4110a53
feat: make sending notification optional
Salvatore112 fd527d2
feat: move student related code to account controller in api gateway
Salvatore112 892ae52
feat: move code for creating student tokens to other account controller
Salvatore112 681086e
feat: add token validation on backend
Salvatore112 73f8c83
feat: add new AuthLayout.tsx with token validation
Salvatore112 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
HwProj.AuthService/HwProj.AuthService.API/Events/RegisterInvitedStudentEvent.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| namespace HwProj.AuthService.API.Events | ||
| { | ||
| public class RegisterInvitedStudentEvent : RegisterEvent | ||
| { | ||
| public RegisterInvitedStudentEvent(string userId, string email, string name, string surname = "", string middleName = "") | ||
| : base(userId, email, name, surname, middleName) | ||
| { | ||
| } | ||
| public string AuthToken { get; set; } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
HwProj.AuthService/HwProj.AuthService.API/Services/IAuthTokenService.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,15 @@ | ||
| using HwProj.Models.AuthService.DTO; | ||
| using HwProj.Models.AuthService.ViewModels; | ||
| using System; | ||
| using System.Threading.Tasks; | ||
| using HwProj.Models.Result; | ||
|
|
||
| namespace HwProj.AuthService.API.Services | ||
| { | ||
| public interface IAuthTokenService | ||
| { | ||
| Task<TokenCredentials> GetTokenAsync(User user); | ||
| Task<TokenCredentials> GetTokenAsync(User user, DateTime? expirationDate = null); | ||
| Task<Result<TokenCredentials>> GetExpertTokenAsync(User expert); | ||
| TokenClaims GetTokenClaims(TokenCredentials tokenCredentials); | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
HwProj.Common/HwProj.Models/AuthService/DTO/TokenValidationResult.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| namespace HwProj.Models.AuthService.DTO | ||
| { | ||
| public class TokenValidationResult | ||
| { | ||
| public bool IsValid { get; set; } | ||
| public string Role { get; set; } | ||
| public string UserId { get; set; } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.