├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── LICENSE ├── README.md ├── docker-compose.yml ├── mvnw ├── mvnw.cmd ├── pom.xml ├── request.http └── src ├── main ├── java │ └── com │ │ └── example │ │ └── sessionauth │ │ ├── SessionAuthApplication.java │ │ ├── controller │ │ └── AuthController.java │ │ ├── dto │ │ └── AuthDTO.java │ │ ├── entity │ │ ├── Employee.java │ │ ├── Role.java │ │ └── userdetails │ │ │ ├── DetailService.java │ │ │ └── EmployeeDetails.java │ │ ├── enumeration │ │ └── RoleEnum.java │ │ ├── exception │ │ └── ControllerAdvices.java │ │ ├── repository │ │ ├── EmployeeRepo.java │ │ └── RoleRepo.java │ │ ├── security │ │ ├── AuthEntryPoint.java │ │ ├── CorsConfig.java │ │ ├── CustomLogoutHandler.java │ │ ├── PasswordConfig.java │ │ ├── RedisConfig.java │ │ └── SecurityConfig.java │ │ └── service │ │ └── AuthService.java └── resources │ ├── application-dev.properties │ └── application.properties └── test ├── java └── com │ └── example │ └── sessionauth │ ├── SessionAuthApplicationTests.java │ └── controller │ └── AuthControllerTest.java └── resources └── application.properties /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/pom.xml -------------------------------------------------------------------------------- /request.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/request.http -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/SessionAuthApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/SessionAuthApplication.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/controller/AuthController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/controller/AuthController.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/dto/AuthDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/dto/AuthDTO.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/entity/Employee.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/entity/Employee.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/entity/Role.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/entity/Role.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/entity/userdetails/DetailService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/entity/userdetails/DetailService.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/entity/userdetails/EmployeeDetails.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/entity/userdetails/EmployeeDetails.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/enumeration/RoleEnum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/enumeration/RoleEnum.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/exception/ControllerAdvices.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/exception/ControllerAdvices.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/repository/EmployeeRepo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/repository/EmployeeRepo.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/repository/RoleRepo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/repository/RoleRepo.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/security/AuthEntryPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/security/AuthEntryPoint.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/security/CorsConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/security/CorsConfig.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/security/CustomLogoutHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/security/CustomLogoutHandler.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/security/PasswordConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/security/PasswordConfig.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/security/RedisConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/security/RedisConfig.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/security/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/security/SecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/com/example/sessionauth/service/AuthService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/java/com/example/sessionauth/service/AuthService.java -------------------------------------------------------------------------------- /src/main/resources/application-dev.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/main/resources/application-dev.properties -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.profiles.active=dev 2 | -------------------------------------------------------------------------------- /src/test/java/com/example/sessionauth/SessionAuthApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/test/java/com/example/sessionauth/SessionAuthApplicationTests.java -------------------------------------------------------------------------------- /src/test/java/com/example/sessionauth/controller/AuthControllerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iTchTheRightSpot/session-authentication/HEAD/src/test/java/com/example/sessionauth/controller/AuthControllerTest.java -------------------------------------------------------------------------------- /src/test/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.profiles.active=dev --------------------------------------------------------------------------------