Implemented Authentication & Authorization#8
Merged
Conversation
Collaborator
Semilore317
commented
Feb 9, 2026
- Created the user entity
- Created roles and permission enums
- Created signup and login endpoints
- Protected the other endpoints from being accessed without correct roles and permission.
…ng: JwtUtil, UserDetailsServiceImpl, JwtAuthenticationFilter, SecurityConfig, and added getPermissions() method to Role enum. Code formatting applied via Spotless
added @EntityListener annotation and @createdat and @lastmodified date to baseEntity, this fixes the entity creation flow
owolabiezekiel
requested changes
Feb 10, 2026
Collaborator
owolabiezekiel
left a comment
There was a problem hiding this comment.
I dont know if you have tested this and it works(I believe it should) but I am not impressed because all I see in this code is AI everywhere. fix the comments
Collaborator
Author
|
I've implemented the necessary changes sir. |
Collaborator
|
Was this tested and everything still works? |
Collaborator
Author
|
Yes sir |
owolabiezekiel
approved these changes
Feb 11, 2026
Semilore317
added a commit
that referenced
this pull request
Apr 6, 2026
* added jjwt dependencies in pom.xml file * chore: ignore secrets directory * added user entity and role-based permissions * added relationship between user and transactions * implemented userRepository * added database migration xml files * created SignupRequest * created LoginRequest DTO * corrected LoginRequest DTO design * added AuthResponse DTO * reformatted UserDto as a record and corrected error in User entity * fixed inconsitencies in DTOs * fixed inconsistencies in DTOs * Successfully implemented all security components with proper formatting: JwtUtil, UserDetailsServiceImpl, JwtAuthenticationFilter, SecurityConfig, and added getPermissions() method to Role enum. Code formatting applied via Spotless * added extra exception classes * updated the GlobalExceptionHandler class * added the EmailAlreadyExistsException class * added the UsernameAlreadyExistsException class * added the InvalidCredentialException class * modified the GlobalExceptionHandler * scaffolded UserService class * implemented the userService * removed unnecessary comments and implemented AuthController * implemented auth controller and removed redudant comments * fixed bug with app not starting * fixed issue where JPA wasn't adding timestamps to base entitiy added @EntityListener annotation and @createdat and @lastmodified date to baseEntity, this fixes the entity creation flow * modified Filter Chain to change endpoint access * added loggin to JwtAuthenticationFilter to detect the issue * refactored secrets file * fixed issue with system_admin credentials * removed unneeded config in application.yaml * added preAuthorize annotation to /me endpoint * added JWT_SECRET to IDEA environment variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.