-
Notifications
You must be signed in to change notification settings - Fork 2
Mashrafe #39
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
Mashrafe #39
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request implements email verification, password reset, and token management functionality for the authentication server. However, the PR contains numerous issues including spelling errors, incorrect error messages, security vulnerabilities, and configuration problems that need to be addressed.
Key Changes
- Added new domain entities and endpoints for Token, EmailVerification, and PasswordReset management with full CRUD operations
- Added Application entity and endpoints for OAuth application management
- Updated database context and configurations to support new entities
- Added validation rules for the new commands
Reviewed Changes
Copilot reviewed 89 out of 95 changed files in this pull request and generated 32 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Domain/Token/Tokens.cs | Defines the Token domain entity with properties for OAuth tokens |
| src/Domain/EmailVerification/EmailVerifications.cs | Defines the EmailVerification entity for tracking email verification tokens |
| src/Domain/PasswordResets/PasswordReset.cs | Defines the PasswordReset entity for password reset token management |
| src/Domain/Application/Applications.cs | Defines the Applications entity for OAuth application management |
| src/Domain/Enums/Status.cs | Adds Status enum for application status tracking |
| src/Infrastructure/Token/TokenConfiguration.cs | Entity Framework configuration for Tokens (contains bugs) |
| src/Infrastructure/Token/IentityTypeConfiguration.cs | Custom configuration base class (should not exist) |
| src/Infrastructure/PasswordResets/PasswordResetConfiguration.cs | Entity Framework configuration for PasswordReset |
| src/Infrastructure/EmailVerfication/EmailVerficationsConfiguration.cs | Entity Framework configuration for EmailVerifications |
| src/Infrastructure/Application/ApplicationConfiguration.cs | Entity Framework configuration for Applications (contains duplicate property config) |
| src/Infrastructure/Database/ApplicationDbContext.cs | Updates DbContext with new DbSets for added entities |
| src/Application/Token/Create/* | Command, handler, and validator for creating tokens |
| src/Application/Token/Update/* | Command and handler for updating tokens |
| src/Application/Token/Get/* | Query and handler for retrieving token lists |
| src/Application/Token/GetById/* | Query and handler for retrieving single token |
| src/Application/Token/Delete/* | Command, handler, and validator for deleting tokens |
| src/Application/EmailVerification/Create/* | Command, handler, and validator for creating email verifications |
| src/Application/EmailVerification/Update/* | Command and handler for updating email verifications |
| src/Application/EmailVerification/Get/* | Query and handler for retrieving email verification lists |
| src/Application/EmailVerification/GetById/* | Query and handler for retrieving single email verification |
| src/Application/EmailVerification/Delete/* | Command, handler, and validator for deleting email verifications |
| src/Application/PasswordResets/Create/* | Command, handler, and validator for creating password resets |
| src/Application/PasswordResets/Update/* | Command and handler for updating password resets |
| src/Application/PasswordResets/Get/* | Query and handler for retrieving password reset lists (contains bugs) |
| src/Application/PasswordResets/GetById/* | Query and handler for retrieving single password reset |
| src/Application/PasswordResets/Delete/* | Command, handler, and validator for deleting password resets |
| src/Application/Application/Create/* | Command, handler, and validator for creating applications |
| src/Application/Abstractions/Data/IApplicationDbContext.cs | Updates interface with new DbSet properties |
| src/Web.Api/Endpoints/Token/* | REST endpoints for Token CRUD operations |
| src/Web.Api/Endpoints/EmailVerification/* | REST endpoints for EmailVerification CRUD operations |
| src/Web.Api/Endpoints/PasswordResets/* | REST endpoints for PasswordReset CRUD operations |
| src/Web.Api/Endpoints/Application/Create.cs | REST endpoint for creating applications |
| src/Web.Api/Endpoints/Tags.cs | Adds API tags for new endpoint groups |
| src/Web.Api/Program.cs | Adds developer exception page and debug logging (security issues) |
| src/Web.Api/appsettings.Development.json | Updates database connection password |
| src/SharedKernel/ErrorType.cs | Adds Unexpected error type enum value |
| src/SharedKernel/Result.cs | Formatting change with extraneous whitespace |
| AuthServer.sln | Updates Visual Studio version (invalid version number) |
| .gitignore | Ignores AuthServer.sln file (questionable practice) |
Files not reviewed (2)
- src/Infrastructure/Database/Migrations/20240811190111_Create_Database.Designer.cs: Language not supported
- src/Infrastructure/Database/Migrations/20251109165202_create_customer.Designer.cs: Language not supported
src/Application/EmailVerification/Create/CreateEmailVerificationCommandValidator.cs
Outdated
Show resolved
Hide resolved
src/Application/EmailVerification/Delete/DeleteEmailVerificationCommandValidator.cs
Outdated
Show resolved
Hide resolved
src/Application/PasswordResets/GetById/GetPasswordResetByIdQueryHandler.cs
Outdated
Show resolved
Hide resolved
src/Application/PasswordResets/Get/GetPasswordResetQueryHandler.cs
Outdated
Show resolved
Hide resolved
…onCommandValidator.cs Co-authored-by: Copilot <[email protected]>
…onCommandValidator.cs Co-authored-by: Copilot <[email protected]>
…r.cs Co-authored-by: Copilot <[email protected]>
…onCommandHandler.cs Co-authored-by: Copilot <[email protected]>
…ndValidator.cs Co-authored-by: Copilot <[email protected]>
…onCommandHandler.cs Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 88 out of 93 changed files in this pull request and generated 14 comments.
Files not reviewed (2)
- src/Infrastructure/Database/Migrations/20240811190111_Create_Database.Designer.cs: Language not supported
- src/Infrastructure/Database/Migrations/20251109165202_create_customer.Designer.cs: Language not supported
src/Application/PasswordResets/Get/GetPasswordResetQueryHandler.cs
Outdated
Show resolved
Hide resolved
src/Application/PasswordResets/Delete/DeletePasswordResetCommandHandler.cs
Outdated
Show resolved
Hide resolved
src/Infrastructure/PasswordResets/PasswordResetConfiguration.cs
Outdated
Show resolved
Hide resolved
…r.cs Co-authored-by: Copilot <[email protected]>
…ndHandler.cs Co-authored-by: Copilot <[email protected]>
…onCommandHandler.cs Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 91 out of 96 changed files in this pull request and generated 17 comments.
Files not reviewed (2)
- src/Infrastructure/Database/Migrations/20240811190111_Create_Database.Designer.cs: Language not supported
- src/Infrastructure/Database/Migrations/20251109165202_create_customer.Designer.cs: Language not supported
src/Infrastructure/EmailVerification/EmailVerficationsConfiguration.cs
Outdated
Show resolved
Hide resolved
src/Domain/EmailVerification/EmailVerificationCreatedDomainEvent.cs
Outdated
Show resolved
Hide resolved
src/Application/PasswordResets/Create/CreatePasswordResetCommandValidator.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 91 out of 96 changed files in this pull request and generated 37 comments.
Files not reviewed (2)
- src/Infrastructure/Database/Migrations/20240811190111_Create_Database.Designer.cs: Language not supported
- src/Infrastructure/Database/Migrations/20251109165202_create_customer.Designer.cs: Language not supported
src/Application/Application/Create/CreateApplicationValidator.cs
Outdated
Show resolved
Hide resolved
src/Application/Application/Create/CreateApplicationValidator.cs
Outdated
Show resolved
Hide resolved
src/Domain/EmailVerification/EmailVerificationCreatedDomainEvent.cs
Outdated
Show resolved
Hide resolved
src/Application/Application/Create/CreateApplicationCommandHandler.cs
Outdated
Show resolved
Hide resolved
src/Application/EmailVerification/Create/CreateEmailVerificationCommandValidator.cs
Outdated
Show resolved
Hide resolved
src/Application/Application/Create/CreateApplicationValidator.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 87 out of 92 changed files in this pull request and generated 11 comments.
Files not reviewed (2)
- src/Infrastructure/Database/Migrations/20240811190111_Create_Database.Designer.cs: Language not supported
- src/Infrastructure/Database/Migrations/20251109165202_create_customer.Designer.cs: Language not supported
src/Infrastructure/PasswordResets/PasswordResetConfiguration.cs
Outdated
Show resolved
Hide resolved
src/Infrastructure/EmailVerification/EmailVerficationsConfiguration.cs
Outdated
Show resolved
Hide resolved
src/Application/Application/Create/CreateApplicationValidator.cs
Outdated
Show resolved
Hide resolved
src/Application/Application/Create/CreateApplicationCommandHandler.cs
Outdated
Show resolved
Hide resolved
…onCommandValidator.cs Co-authored-by: Copilot <[email protected]>
Email verification and token
Some endpoints return 204 but still the CRUD works