Skip to content

Test auth#19

Merged
NourAlPha merged 6 commits intodevfrom
test-auth
May 4, 2025
Merged

Test auth#19
NourAlPha merged 6 commits intodevfrom
test-auth

Conversation

@NourAlPha
Copy link
Copy Markdown
Contributor

@NourAlPha NourAlPha commented May 3, 2025

  • Enhance admin service with user details caching and refactor CustomUserDetails
  • Change user id from Long to UUID
  • Update cache bug

@NourAlPha NourAlPha requested review from a team and Copilot May 3, 2025 15:41
Copy link
Copy Markdown
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 PR enhances the admin service by adding user details caching and refactors user detail creation for consistency and maintainability.

  • Implements cache eviction and update methods in AdminService.
  • Refactors user details creation to use a centralized static method.
  • Updates authentication endpoints in SecurityConfig and refactors CustomUserDetails with Lombok.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
CustomUserDetailsService.java Refactored to use a centralized getUserDetails method.
AdminService.java Added cache eviction/put methods and centralized user details creation.
SecurityConfig.java Updated request matchers to enforce POST for authentication endpoints.
User.java Changed the ID generation strategy and added default builder values for fields.
CustomUserDetails.java Refactored using Lombok annotations and the builder pattern for clarity.

Comment thread src/main/java/com/podzilla/auth/model/User.java Outdated
@NourAlPha NourAlPha merged commit e39f554 into dev May 4, 2025
5 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