Login registration
Loading
Fakultas Ilmu Komputer UI
Created by: KronosDP
This pull request includes several significant changes to the pom.xml
file and the addition of new classes and configurations for user authentication and security in the safetypin
project. The most important changes include the update of dependencies, the addition of new DTOs, controllers, models, exceptions, and security configurations.
junit-jupiter-api
to junit-jupiter
and version to 5.11.2.org.postgresql:postgresql
dependency for runtime.spring-boot-starter-data-jpa
, spring-boot-starter-security
, h2
, spring-security-test
, spring-boot-starter-validation
, and spring-boot-starter-test
.AuthenticationController
with endpoints for email and social registration, OTP verification, login, password reset, and a placeholder dashboard.ErrorResponse
, PasswordResetRequest
, RegistrationRequest
, and SocialLoginRequest
to handle requests and responses.User
model with fields for email, password, name, verification status, role, birthdate, provider, and social ID.UserRepository
interface extending JpaRepository
for database operations on User
entities.BCryptPasswordEncoder
in PasswordEncoderConfig
.SecurityConfig
to disable CSRF, allow all requests, and manage sessions statelessly.InvalidCredentialsException
and UserAlreadyExistsException
for handling specific error cases.These changes collectively enhance the authentication and security features of the application, ensuring better user management and secure handling of credentials.
Excellence In Teamwork