Skip to content

feat: enhance authentication with JWT strategy and user decorators#8

Merged
jzunigax2 merged 1 commit intomasterfrom
feat/auth-guard
Mar 27, 2026
Merged

feat: enhance authentication with JWT strategy and user decorators#8
jzunigax2 merged 1 commit intomasterfrom
feat/auth-guard

Conversation

@jzunigax2
Copy link
Copy Markdown
Contributor

  • Implemented JwtStrategy for handling JWT authentication, extracting user payload from tokens.
  • Created JwtAuthGuard to manage access control based on public metadata.
  • Introduced user decorators to simplify access to authenticated user data in controllers.
  • Updated EmailController to utilize user information for email operations.
  • Added public health check endpoint to allow unauthenticated access.
  • Included new JWT payload DTO for structured token data handling.
  • Added unit tests for JwtStrategy to ensure correct payload validation.

@jzunigax2 jzunigax2 requested a review from apsantiso March 25, 2026 03:33
@jzunigax2 jzunigax2 self-assigned this Mar 25, 2026
@jzunigax2 jzunigax2 added the enhancement New feature or request label Mar 25, 2026
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
53.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@jzunigax2 jzunigax2 force-pushed the feat/stalwart-admin-api-principals branch from 3efc3a3 to ec2b9e9 Compare March 27, 2026 12:28
- Implemented JwtStrategy for handling JWT authentication, extracting user payload from tokens.
- Created JwtAuthGuard to manage access control based on public metadata.
- Introduced user decorators to simplify access to authenticated user data in controllers.
- Updated EmailController to utilize user information for email operations.
- Added public health check endpoint to allow unauthenticated access.
- Included new JWT payload DTO for structured token data handling.
- Added unit tests for JwtStrategy to ensure correct payload validation.
Base automatically changed from feat/stalwart-admin-api-principals to master March 27, 2026 12:31
@jzunigax2 jzunigax2 merged commit d80344b into master Mar 27, 2026
@jzunigax2 jzunigax2 deleted the feat/auth-guard branch March 27, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants