├── .gitignore ├── LICENSE ├── README.md ├── etc ├── .DS_Store ├── findbugs-exclude-filter.xml └── screenshot-jwt-spring-security-demo.png ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── org │ │ └── zerhusen │ │ ├── JwtDemoApplication.java │ │ ├── config │ │ └── WebSecurityConfig.java │ │ ├── model │ │ └── security │ │ │ ├── AuthorityName.java │ │ │ └── User.java │ │ ├── rest │ │ ├── Person.java │ │ └── PersonRestService.java │ │ └── security │ │ ├── JwtAuthenticationEntryPoint.java │ │ ├── JwtAuthenticationRequest.java │ │ ├── JwtAuthenticationTokenFilter.java │ │ ├── JwtTokenUtil.java │ │ ├── JwtUser.java │ │ ├── JwtUserFactory.java │ │ ├── controller │ │ ├── AuthenticationRestController.java │ │ ├── MethodProtectedRestController.java │ │ └── UserRestController.java │ │ ├── repository │ │ └── UserRepository.java │ │ └── service │ │ ├── JwtAuthenticationResponse.java │ │ └── JwtUserDetailsServiceImpl.java └── resources │ ├── application.yml │ ├── banner.txt │ ├── import.json │ └── static │ ├── index.html │ └── js │ └── client.js └── test └── java └── org └── zerhusen ├── JwtDemoApplicationTests.java └── security └── JwtTokenUtilTest.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/README.md -------------------------------------------------------------------------------- /etc/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/etc/.DS_Store -------------------------------------------------------------------------------- /etc/findbugs-exclude-filter.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/etc/findbugs-exclude-filter.xml -------------------------------------------------------------------------------- /etc/screenshot-jwt-spring-security-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/etc/screenshot-jwt-spring-security-demo.png -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/JwtDemoApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/JwtDemoApplication.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/config/WebSecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/config/WebSecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/model/security/AuthorityName.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/model/security/AuthorityName.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/model/security/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/model/security/User.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/rest/Person.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/rest/Person.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/rest/PersonRestService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/rest/PersonRestService.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/JwtAuthenticationEntryPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/JwtAuthenticationEntryPoint.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/JwtAuthenticationRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/JwtAuthenticationRequest.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/JwtAuthenticationTokenFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/JwtAuthenticationTokenFilter.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/JwtTokenUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/JwtTokenUtil.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/JwtUser.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/JwtUser.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/JwtUserFactory.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/JwtUserFactory.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/controller/AuthenticationRestController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/controller/AuthenticationRestController.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/controller/MethodProtectedRestController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/controller/MethodProtectedRestController.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/controller/UserRestController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/controller/UserRestController.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/repository/UserRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/repository/UserRepository.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/service/JwtAuthenticationResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/service/JwtAuthenticationResponse.java -------------------------------------------------------------------------------- /src/main/java/org/zerhusen/security/service/JwtUserDetailsServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/java/org/zerhusen/security/service/JwtUserDetailsServiceImpl.java -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/resources/application.yml -------------------------------------------------------------------------------- /src/main/resources/banner.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/resources/banner.txt -------------------------------------------------------------------------------- /src/main/resources/import.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/resources/import.json -------------------------------------------------------------------------------- /src/main/resources/static/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/resources/static/index.html -------------------------------------------------------------------------------- /src/main/resources/static/js/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/main/resources/static/js/client.js -------------------------------------------------------------------------------- /src/test/java/org/zerhusen/JwtDemoApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/test/java/org/zerhusen/JwtDemoApplicationTests.java -------------------------------------------------------------------------------- /src/test/java/org/zerhusen/security/JwtTokenUtilTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babltiga/jwt-spring-security-demo/HEAD/src/test/java/org/zerhusen/security/JwtTokenUtilTest.java --------------------------------------------------------------------------------