├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── anilaltunkan │ │ └── security │ │ ├── AuthenticationTestApplication.java │ │ ├── conf │ │ ├── RestAuthenticationEntryPoint.java │ │ ├── SecurityConfig.java │ │ ├── TokenAuthenticationFilter.java │ │ └── WebMvcConfig.java │ │ ├── controller │ │ ├── AuthController.java │ │ └── UserController.java │ │ ├── dto │ │ ├── CustomUserDetails.java │ │ ├── LoginRequest.java │ │ ├── LoginResponse.java │ │ ├── Token.java │ │ └── UserSummary.java │ │ ├── model │ │ ├── AuthProvider.java │ │ ├── Authority.java │ │ └── User.java │ │ ├── repository │ │ └── UserRepository.java │ │ ├── service │ │ ├── CustomUserDetailsServiceImpl.java │ │ ├── TokenProvider.java │ │ ├── TokenProviderImpl.java │ │ ├── UserService.java │ │ └── UserServiceImpl.java │ │ └── util │ │ ├── CookieUtil.java │ │ └── SecurityCipher.java └── resources │ └── application.yaml └── test └── java └── com └── anilaltunkan └── security └── AuthenticationTestApplicationTests.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/.mvn/wrapper/MavenWrapperDownloader.java -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/AuthenticationTestApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/AuthenticationTestApplication.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/conf/RestAuthenticationEntryPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/conf/RestAuthenticationEntryPoint.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/conf/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/conf/SecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/conf/TokenAuthenticationFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/conf/TokenAuthenticationFilter.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/conf/WebMvcConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/conf/WebMvcConfig.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/controller/AuthController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/controller/AuthController.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/controller/UserController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/controller/UserController.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/dto/CustomUserDetails.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/dto/CustomUserDetails.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/dto/LoginRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/dto/LoginRequest.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/dto/LoginResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/dto/LoginResponse.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/dto/Token.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/dto/Token.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/dto/UserSummary.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/dto/UserSummary.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/model/AuthProvider.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/model/AuthProvider.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/model/Authority.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/model/Authority.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/model/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/model/User.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/repository/UserRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/repository/UserRepository.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/service/CustomUserDetailsServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/service/CustomUserDetailsServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/service/TokenProvider.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/service/TokenProvider.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/service/TokenProviderImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/service/TokenProviderImpl.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/service/UserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/service/UserService.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/service/UserServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/service/UserServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/util/CookieUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/util/CookieUtil.java -------------------------------------------------------------------------------- /src/main/java/com/anilaltunkan/security/util/SecurityCipher.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/java/com/anilaltunkan/security/util/SecurityCipher.java -------------------------------------------------------------------------------- /src/main/resources/application.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/main/resources/application.yaml -------------------------------------------------------------------------------- /src/test/java/com/anilaltunkan/security/AuthenticationTestApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altunkan/authentication-test/HEAD/src/test/java/com/anilaltunkan/security/AuthenticationTestApplicationTests.java --------------------------------------------------------------------------------