├── .gitignore ├── LICENSE ├── README.md ├── SpringSecurityArchitectureDiagram.drawio ├── SpringSecurityArchitectureDiagram.svg ├── Task1 ├── .gitattributes ├── .gitignore ├── .mvn │ └── wrapper │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── shalash │ │ │ └── task1 │ │ │ ├── HelloSpringSecurityController.java │ │ │ ├── SecurityConfiguration.java │ │ │ ├── SecurityFilter.java │ │ │ └── Task1Application.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── shalash │ └── task1 │ └── Task1ApplicationTests.java ├── Task2 ├── .gitattributes ├── .gitignore ├── .mvn │ └── wrapper │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── shalash │ │ │ └── task2 │ │ │ ├── HelloSpringSecurityController.java │ │ │ ├── SecurityConfiguration.java │ │ │ └── Task2Application.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── shalash │ └── task2 │ └── Task2ApplicationTests.java ├── Task3 ├── .gitattributes ├── .gitignore ├── .mvn │ └── wrapper │ │ └── maven-wrapper.properties ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── shalash │ │ │ └── task3 │ │ │ ├── CustomSuccessHandler.java │ │ │ ├── HelloSpringSecurityController.java │ │ │ ├── LoginController.java │ │ │ ├── SecurityConfig.java │ │ │ └── Task3Application.java │ └── resources │ │ ├── application.properties │ │ └── templates │ │ └── login.html │ └── test │ └── java │ └── com │ └── shalash │ └── task3 │ └── Task3ApplicationTests.java ├── Task4 ├── .gitattributes ├── .gitignore ├── .mvn │ └── wrapper │ │ └── maven-wrapper.properties ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── shalash │ │ │ └── task4 │ │ │ ├── HelloWorldController.java │ │ │ ├── SecurityConfiguration.java │ │ │ ├── Task4Application.java │ │ │ ├── UserDetailsImplementationEntity.java │ │ │ └── UserDetailsImplementationEntityRepository.java │ └── resources │ │ └── application.yaml │ └── test │ └── java │ └── com │ └── shalash │ └── task4 │ └── Task4ApplicationTests.java ├── Task5 ├── .gitattributes ├── .gitignore ├── .mvn │ └── wrapper │ │ └── maven-wrapper.properties ├── README.md ├── img.png ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── shalash │ │ │ └── task5 │ │ │ ├── ApplicationConfig.java │ │ │ ├── Task5Application.java │ │ │ ├── controller │ │ │ ├── AuthenticationController.java │ │ │ └── HelloWorldController.java │ │ │ ├── enitity │ │ │ └── UserDetailsImpl.java │ │ │ ├── mapper │ │ │ └── UserMapper.java │ │ │ ├── model │ │ │ ├── AuthenticationRequest.java │ │ │ ├── AuthenticationResponse.java │ │ │ ├── UserRequest.java │ │ │ └── UserResponse.java │ │ │ ├── repository │ │ │ └── UserDetailsImplRepo.java │ │ │ └── security │ │ │ ├── JwtAuthenticationFilter.java │ │ │ ├── JwtService.java │ │ │ └── SecurityConfiguration.java │ └── resources │ │ └── application.yaml │ └── test │ └── java │ └── com │ └── shalash │ └── task5 │ └── Task5ApplicationTests.java ├── Task6 ├── .gitattributes ├── .gitignore ├── .mvn │ └── wrapper │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── shalash │ │ │ └── task6 │ │ │ ├── CustomOAuth2UserService.java │ │ │ ├── HelloWorldController.java │ │ │ ├── SecurityConfig.java │ │ │ ├── Task6Application.java │ │ │ ├── User.java │ │ │ └── UserRepository.java │ └── resources │ │ └── application.yaml │ └── test │ └── java │ └── com │ └── shalash │ └── task6 │ └── Task6ApplicationTests.java ├── Task7 ├── .gitattributes ├── .gitignore ├── .mvn │ └── wrapper │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── shalash │ │ │ └── task7 │ │ │ ├── Book.java │ │ │ ├── BookService.java │ │ │ ├── HelloController.java │ │ │ ├── SecurityConfig.java │ │ │ └── Task7Application.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── shalash │ └── task7 │ └── Task7ApplicationTests.java ├── Task8 ├── .gitattributes ├── .gitignore ├── .mvn │ └── wrapper │ │ └── maven-wrapper.properties ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── shalash │ │ │ └── task8 │ │ │ ├── HelloController.java │ │ │ ├── SecurityConfig.java │ │ │ └── Task8Application.java │ └── resources │ │ ├── application.properties │ │ └── templates │ │ └── index.html │ └── test │ └── java │ └── com │ └── shalash │ └── task8 │ └── Task8ApplicationTests.java └── Task9 ├── .gitattributes ├── .gitignore ├── .mvn └── wrapper │ └── maven-wrapper.properties ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── shalash │ │ └── task9 │ │ ├── HelloController.java │ │ ├── SecurityConfig.java │ │ └── Task9Application.java └── resources │ ├── application.properties │ └── test-server.ldif └── test └── java └── com └── shalash └── task9 └── Task9ApplicationTests.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/README.md -------------------------------------------------------------------------------- /SpringSecurityArchitectureDiagram.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/SpringSecurityArchitectureDiagram.drawio -------------------------------------------------------------------------------- /SpringSecurityArchitectureDiagram.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/SpringSecurityArchitectureDiagram.svg -------------------------------------------------------------------------------- /Task1/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/.gitattributes -------------------------------------------------------------------------------- /Task1/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/.gitignore -------------------------------------------------------------------------------- /Task1/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /Task1/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/mvnw -------------------------------------------------------------------------------- /Task1/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/mvnw.cmd -------------------------------------------------------------------------------- /Task1/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/pom.xml -------------------------------------------------------------------------------- /Task1/src/main/java/com/shalash/task1/HelloSpringSecurityController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/src/main/java/com/shalash/task1/HelloSpringSecurityController.java -------------------------------------------------------------------------------- /Task1/src/main/java/com/shalash/task1/SecurityConfiguration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/src/main/java/com/shalash/task1/SecurityConfiguration.java -------------------------------------------------------------------------------- /Task1/src/main/java/com/shalash/task1/SecurityFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/src/main/java/com/shalash/task1/SecurityFilter.java -------------------------------------------------------------------------------- /Task1/src/main/java/com/shalash/task1/Task1Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/src/main/java/com/shalash/task1/Task1Application.java -------------------------------------------------------------------------------- /Task1/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=Task1 2 | -------------------------------------------------------------------------------- /Task1/src/test/java/com/shalash/task1/Task1ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task1/src/test/java/com/shalash/task1/Task1ApplicationTests.java -------------------------------------------------------------------------------- /Task2/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task2/.gitattributes -------------------------------------------------------------------------------- /Task2/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task2/.gitignore -------------------------------------------------------------------------------- /Task2/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task2/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /Task2/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task2/mvnw -------------------------------------------------------------------------------- /Task2/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task2/mvnw.cmd -------------------------------------------------------------------------------- /Task2/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task2/pom.xml -------------------------------------------------------------------------------- /Task2/src/main/java/com/shalash/task2/HelloSpringSecurityController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task2/src/main/java/com/shalash/task2/HelloSpringSecurityController.java -------------------------------------------------------------------------------- /Task2/src/main/java/com/shalash/task2/SecurityConfiguration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task2/src/main/java/com/shalash/task2/SecurityConfiguration.java -------------------------------------------------------------------------------- /Task2/src/main/java/com/shalash/task2/Task2Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task2/src/main/java/com/shalash/task2/Task2Application.java -------------------------------------------------------------------------------- /Task2/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=Task2 2 | -------------------------------------------------------------------------------- /Task2/src/test/java/com/shalash/task2/Task2ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task2/src/test/java/com/shalash/task2/Task2ApplicationTests.java -------------------------------------------------------------------------------- /Task3/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/.gitattributes -------------------------------------------------------------------------------- /Task3/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/.gitignore -------------------------------------------------------------------------------- /Task3/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /Task3/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/README.md -------------------------------------------------------------------------------- /Task3/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/mvnw -------------------------------------------------------------------------------- /Task3/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/mvnw.cmd -------------------------------------------------------------------------------- /Task3/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/pom.xml -------------------------------------------------------------------------------- /Task3/src/main/java/com/shalash/task3/CustomSuccessHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/src/main/java/com/shalash/task3/CustomSuccessHandler.java -------------------------------------------------------------------------------- /Task3/src/main/java/com/shalash/task3/HelloSpringSecurityController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/src/main/java/com/shalash/task3/HelloSpringSecurityController.java -------------------------------------------------------------------------------- /Task3/src/main/java/com/shalash/task3/LoginController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/src/main/java/com/shalash/task3/LoginController.java -------------------------------------------------------------------------------- /Task3/src/main/java/com/shalash/task3/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/src/main/java/com/shalash/task3/SecurityConfig.java -------------------------------------------------------------------------------- /Task3/src/main/java/com/shalash/task3/Task3Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/src/main/java/com/shalash/task3/Task3Application.java -------------------------------------------------------------------------------- /Task3/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=Task3 2 | -------------------------------------------------------------------------------- /Task3/src/main/resources/templates/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/src/main/resources/templates/login.html -------------------------------------------------------------------------------- /Task3/src/test/java/com/shalash/task3/Task3ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task3/src/test/java/com/shalash/task3/Task3ApplicationTests.java -------------------------------------------------------------------------------- /Task4/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/.gitattributes -------------------------------------------------------------------------------- /Task4/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/.gitignore -------------------------------------------------------------------------------- /Task4/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /Task4/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/README.md -------------------------------------------------------------------------------- /Task4/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/mvnw -------------------------------------------------------------------------------- /Task4/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/mvnw.cmd -------------------------------------------------------------------------------- /Task4/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/pom.xml -------------------------------------------------------------------------------- /Task4/src/main/java/com/shalash/task4/HelloWorldController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/src/main/java/com/shalash/task4/HelloWorldController.java -------------------------------------------------------------------------------- /Task4/src/main/java/com/shalash/task4/SecurityConfiguration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/src/main/java/com/shalash/task4/SecurityConfiguration.java -------------------------------------------------------------------------------- /Task4/src/main/java/com/shalash/task4/Task4Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/src/main/java/com/shalash/task4/Task4Application.java -------------------------------------------------------------------------------- /Task4/src/main/java/com/shalash/task4/UserDetailsImplementationEntity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/src/main/java/com/shalash/task4/UserDetailsImplementationEntity.java -------------------------------------------------------------------------------- /Task4/src/main/java/com/shalash/task4/UserDetailsImplementationEntityRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/src/main/java/com/shalash/task4/UserDetailsImplementationEntityRepository.java -------------------------------------------------------------------------------- /Task4/src/main/resources/application.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/src/main/resources/application.yaml -------------------------------------------------------------------------------- /Task4/src/test/java/com/shalash/task4/Task4ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task4/src/test/java/com/shalash/task4/Task4ApplicationTests.java -------------------------------------------------------------------------------- /Task5/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/.gitattributes -------------------------------------------------------------------------------- /Task5/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/.gitignore -------------------------------------------------------------------------------- /Task5/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /Task5/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/README.md -------------------------------------------------------------------------------- /Task5/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/img.png -------------------------------------------------------------------------------- /Task5/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/mvnw -------------------------------------------------------------------------------- /Task5/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/mvnw.cmd -------------------------------------------------------------------------------- /Task5/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/pom.xml -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/ApplicationConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/ApplicationConfig.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/Task5Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/Task5Application.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/controller/AuthenticationController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/controller/AuthenticationController.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/controller/HelloWorldController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/controller/HelloWorldController.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/enitity/UserDetailsImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/enitity/UserDetailsImpl.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/mapper/UserMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/mapper/UserMapper.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/model/AuthenticationRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/model/AuthenticationRequest.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/model/AuthenticationResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/model/AuthenticationResponse.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/model/UserRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/model/UserRequest.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/model/UserResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/model/UserResponse.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/repository/UserDetailsImplRepo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/repository/UserDetailsImplRepo.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/security/JwtAuthenticationFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/security/JwtAuthenticationFilter.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/security/JwtService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/security/JwtService.java -------------------------------------------------------------------------------- /Task5/src/main/java/com/shalash/task5/security/SecurityConfiguration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/java/com/shalash/task5/security/SecurityConfiguration.java -------------------------------------------------------------------------------- /Task5/src/main/resources/application.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/main/resources/application.yaml -------------------------------------------------------------------------------- /Task5/src/test/java/com/shalash/task5/Task5ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task5/src/test/java/com/shalash/task5/Task5ApplicationTests.java -------------------------------------------------------------------------------- /Task6/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/.gitattributes -------------------------------------------------------------------------------- /Task6/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/.gitignore -------------------------------------------------------------------------------- /Task6/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /Task6/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/mvnw -------------------------------------------------------------------------------- /Task6/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/mvnw.cmd -------------------------------------------------------------------------------- /Task6/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/pom.xml -------------------------------------------------------------------------------- /Task6/src/main/java/com/shalash/task6/CustomOAuth2UserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/src/main/java/com/shalash/task6/CustomOAuth2UserService.java -------------------------------------------------------------------------------- /Task6/src/main/java/com/shalash/task6/HelloWorldController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/src/main/java/com/shalash/task6/HelloWorldController.java -------------------------------------------------------------------------------- /Task6/src/main/java/com/shalash/task6/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/src/main/java/com/shalash/task6/SecurityConfig.java -------------------------------------------------------------------------------- /Task6/src/main/java/com/shalash/task6/Task6Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/src/main/java/com/shalash/task6/Task6Application.java -------------------------------------------------------------------------------- /Task6/src/main/java/com/shalash/task6/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/src/main/java/com/shalash/task6/User.java -------------------------------------------------------------------------------- /Task6/src/main/java/com/shalash/task6/UserRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/src/main/java/com/shalash/task6/UserRepository.java -------------------------------------------------------------------------------- /Task6/src/main/resources/application.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/src/main/resources/application.yaml -------------------------------------------------------------------------------- /Task6/src/test/java/com/shalash/task6/Task6ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task6/src/test/java/com/shalash/task6/Task6ApplicationTests.java -------------------------------------------------------------------------------- /Task7/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/.gitattributes -------------------------------------------------------------------------------- /Task7/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/.gitignore -------------------------------------------------------------------------------- /Task7/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /Task7/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/mvnw -------------------------------------------------------------------------------- /Task7/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/mvnw.cmd -------------------------------------------------------------------------------- /Task7/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/pom.xml -------------------------------------------------------------------------------- /Task7/src/main/java/com/shalash/task7/Book.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/src/main/java/com/shalash/task7/Book.java -------------------------------------------------------------------------------- /Task7/src/main/java/com/shalash/task7/BookService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/src/main/java/com/shalash/task7/BookService.java -------------------------------------------------------------------------------- /Task7/src/main/java/com/shalash/task7/HelloController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/src/main/java/com/shalash/task7/HelloController.java -------------------------------------------------------------------------------- /Task7/src/main/java/com/shalash/task7/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/src/main/java/com/shalash/task7/SecurityConfig.java -------------------------------------------------------------------------------- /Task7/src/main/java/com/shalash/task7/Task7Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/src/main/java/com/shalash/task7/Task7Application.java -------------------------------------------------------------------------------- /Task7/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/src/main/resources/application.properties -------------------------------------------------------------------------------- /Task7/src/test/java/com/shalash/task7/Task7ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task7/src/test/java/com/shalash/task7/Task7ApplicationTests.java -------------------------------------------------------------------------------- /Task8/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/.gitattributes -------------------------------------------------------------------------------- /Task8/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/.gitignore -------------------------------------------------------------------------------- /Task8/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /Task8/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/README.md -------------------------------------------------------------------------------- /Task8/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/mvnw -------------------------------------------------------------------------------- /Task8/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/mvnw.cmd -------------------------------------------------------------------------------- /Task8/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/pom.xml -------------------------------------------------------------------------------- /Task8/src/main/java/com/shalash/task8/HelloController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/src/main/java/com/shalash/task8/HelloController.java -------------------------------------------------------------------------------- /Task8/src/main/java/com/shalash/task8/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/src/main/java/com/shalash/task8/SecurityConfig.java -------------------------------------------------------------------------------- /Task8/src/main/java/com/shalash/task8/Task8Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/src/main/java/com/shalash/task8/Task8Application.java -------------------------------------------------------------------------------- /Task8/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=Task8 2 | -------------------------------------------------------------------------------- /Task8/src/main/resources/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/src/main/resources/templates/index.html -------------------------------------------------------------------------------- /Task8/src/test/java/com/shalash/task8/Task8ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task8/src/test/java/com/shalash/task8/Task8ApplicationTests.java -------------------------------------------------------------------------------- /Task9/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/.gitattributes -------------------------------------------------------------------------------- /Task9/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/.gitignore -------------------------------------------------------------------------------- /Task9/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /Task9/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/README.md -------------------------------------------------------------------------------- /Task9/mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/mvnw -------------------------------------------------------------------------------- /Task9/mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/mvnw.cmd -------------------------------------------------------------------------------- /Task9/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/pom.xml -------------------------------------------------------------------------------- /Task9/src/main/java/com/shalash/task9/HelloController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/src/main/java/com/shalash/task9/HelloController.java -------------------------------------------------------------------------------- /Task9/src/main/java/com/shalash/task9/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/src/main/java/com/shalash/task9/SecurityConfig.java -------------------------------------------------------------------------------- /Task9/src/main/java/com/shalash/task9/Task9Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/src/main/java/com/shalash/task9/Task9Application.java -------------------------------------------------------------------------------- /Task9/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/src/main/resources/application.properties -------------------------------------------------------------------------------- /Task9/src/main/resources/test-server.ldif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/src/main/resources/test-server.ldif -------------------------------------------------------------------------------- /Task9/src/test/java/com/shalash/task9/Task9ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tawfik-s/Spring-Security-Tasks-Solution/HEAD/Task9/src/test/java/com/shalash/task9/Task9ApplicationTests.java --------------------------------------------------------------------------------