├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── web │ │ └── backend │ │ ├── BackendApplication.java │ │ ├── controller │ │ ├── AuthRestAPIs.java │ │ └── TestRestAPIs.java │ │ ├── exception │ │ ├── EmailAlreadyExistsException.java │ │ ├── GroupAlreadyExistsException.java │ │ ├── RoleNotFoundException.java │ │ └── UsernameAlreadyExistsException.java │ │ ├── model │ │ ├── Role.java │ │ ├── RoleName.java │ │ └── User.java │ │ ├── payload │ │ ├── request │ │ │ ├── LoginRequest.java │ │ │ └── SignupRequest.java │ │ └── response │ │ │ ├── JwtResponse.java │ │ │ └── MessageResponse.java │ │ ├── repository │ │ ├── RoleRepository.java │ │ └── UserRepository.java │ │ └── security │ │ ├── WebSecurityConfig.java │ │ ├── jwt │ │ ├── JwtAuthEntryPoint.java │ │ ├── JwtAuthTokenFilter.java │ │ ├── JwtAuthenticationSuccessHandler.java │ │ └── JwtProvider.java │ │ └── services │ │ ├── UserDetailsServiceImpl.java │ │ └── UserPrinciple.java └── resources │ ├── META-INF │ └── additional-spring-configuration-metadata.json │ ├── application.properties │ ├── static │ └── index.html │ └── templates │ ├── login.html │ └── users.html └── test └── java └── com └── web └── backend └── BackendApplicationTests.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/.mvn/wrapper/MavenWrapperDownloader.java -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/README.md -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/com/web/backend/BackendApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/BackendApplication.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/controller/AuthRestAPIs.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/controller/AuthRestAPIs.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/controller/TestRestAPIs.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/controller/TestRestAPIs.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/exception/EmailAlreadyExistsException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/exception/EmailAlreadyExistsException.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/exception/GroupAlreadyExistsException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/exception/GroupAlreadyExistsException.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/exception/RoleNotFoundException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/exception/RoleNotFoundException.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/exception/UsernameAlreadyExistsException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/exception/UsernameAlreadyExistsException.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/model/Role.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/model/Role.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/model/RoleName.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/model/RoleName.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/model/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/model/User.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/payload/request/LoginRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/payload/request/LoginRequest.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/payload/request/SignupRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/payload/request/SignupRequest.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/payload/response/JwtResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/payload/response/JwtResponse.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/payload/response/MessageResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/payload/response/MessageResponse.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/repository/RoleRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/repository/RoleRepository.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/repository/UserRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/repository/UserRepository.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/security/WebSecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/security/WebSecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/security/jwt/JwtAuthEntryPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/security/jwt/JwtAuthEntryPoint.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/security/jwt/JwtAuthTokenFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/security/jwt/JwtAuthTokenFilter.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/security/jwt/JwtAuthenticationSuccessHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/security/jwt/JwtAuthenticationSuccessHandler.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/security/jwt/JwtProvider.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/security/jwt/JwtProvider.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/security/services/UserDetailsServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/security/services/UserDetailsServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/web/backend/security/services/UserPrinciple.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/java/com/web/backend/security/services/UserPrinciple.java -------------------------------------------------------------------------------- /src/main/resources/META-INF/additional-spring-configuration-metadata.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/resources/META-INF/additional-spring-configuration-metadata.json -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/resources/application.properties -------------------------------------------------------------------------------- /src/main/resources/static/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/resources/static/index.html -------------------------------------------------------------------------------- /src/main/resources/templates/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/resources/templates/login.html -------------------------------------------------------------------------------- /src/main/resources/templates/users.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/main/resources/templates/users.html -------------------------------------------------------------------------------- /src/test/java/com/web/backend/BackendApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxwellkimaiyo/SpringBoot-Security-JWT/HEAD/src/test/java/com/web/backend/BackendApplicationTests.java --------------------------------------------------------------------------------