Skip to content

Feat/user svc#14

Merged
lenni108 merged 15 commits intodevfrom
feat/user-svc
Jul 11, 2025
Merged

Feat/user svc#14
lenni108 merged 15 commits intodevfrom
feat/user-svc

Conversation

@ClaudiaDuenzinger
Copy link
Collaborator

@ClaudiaDuenzinger ClaudiaDuenzinger commented Jul 9, 2025

🚀 User Service Implementation - Complete API Compliance & Error Handling

** 📋 Pull Request Summary**

  • This PR implements a complete, production-ready User Service that fully complies with the OpenAPI specification and provides error handling. The service now supports user registration, authentication, profile management, and comprehensive error responses.

�� Authentication & Security

  • JWT-based authentication with secure token validation
  • Password hashing using BCrypt for security
  • Stateless session management for scalability
  • Custom authentication entry point for structured error responses

👤 User Management

  • User registration with duplicate email validation
  • Profile retrieval with complete user data including preferences
  • Profile updates with partial update support
  • User preferences management (event format, industry, language, timezone)
  • Login/logout functionality with JWT tokens

🛡️ Error Handling

  • Structured ErrorResponse objects matching OpenAPI specification
  • Comprehensive error types: MISSING_TOKEN, INVALID_TOKEN, INVALID_CREDENTIALS, USER_ALREADY_EXISTS, USER_NOT_FOUND
  • Proper HTTP status codes (401, 404, 409, 500)
  • Global exception handler for consistent error formatting
  • Custom business exceptions for specific error scenarios

��️ Data Management

  • PostgreSQL integration with JPA/Hibernate
  • Complete user entity with all required fields
  • Timestamp management (createdAt, updatedAt, lastLoginAt)
  • User preferences as embeddable entity
  • Proper DTO mapping between entities and API models

@ClaudiaDuenzinger ClaudiaDuenzinger requested a review from sfdamm July 9, 2025 18:49
@sfdamm sfdamm changed the base branch from main to dev July 10, 2025 12:16
@lenni108 lenni108 merged commit 21d4bb2 into dev Jul 11, 2025
7 checks passed
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.

3 participants