Skip to content

Conversation

@MashrafeJess
Copy link
Collaborator

Email verification and token

Some endpoints return 204 but still the CRUD works

@MashrafeJess MashrafeJess added the bug Something isn't working label Nov 19, 2025
@MashrafeJess MashrafeJess linked an issue Nov 19, 2025 that may be closed by this pull request
@mihaduldev mihaduldev requested review from Copilot and removed request for mihaduldev November 19, 2025 14:53
Copilot finished reviewing on behalf of mihaduldev November 19, 2025 14:59
Copy link
Contributor

Copilot AI left a 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

@mihaduldev mihaduldev requested a review from Copilot November 20, 2025 04:56
Copilot finished reviewing on behalf of mihaduldev November 20, 2025 04:57
Copy link
Contributor

Copilot AI left a 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

@mihaduldev mihaduldev requested a review from Copilot November 20, 2025 05:34
Copilot finished reviewing on behalf of mihaduldev November 20, 2025 05:36
Copy link
Contributor

Copilot AI left a 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

@mihaduldev mihaduldev requested a review from Copilot November 20, 2025 05:48
Copilot finished reviewing on behalf of mihaduldev November 20, 2025 05:53
Copy link
Contributor

Copilot AI left a 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

@mihaduldev mihaduldev requested a review from Copilot November 20, 2025 06:53
Copilot finished reviewing on behalf of mihaduldev November 20, 2025 06:55
Copy link
Contributor

Copilot AI left a 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

@MashrafeJess MashrafeJess merged commit 0ae7575 into Dev Nov 24, 2025
@MashrafeJess MashrafeJess mentioned this pull request Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding Email Verification, Password Reset and Token Table

3 participants