├── .gitignore ├── README.md ├── pom.xml └── src └── main ├── java └── com │ └── github │ └── iyboklee │ ├── Application.java │ ├── api │ ├── GeneralExceptionHandler.java │ ├── model │ │ ├── request │ │ │ └── security │ │ │ │ └── AuthenticationRequest.java │ │ └── response │ │ │ ├── ApiError.java │ │ │ ├── ApiResult.java │ │ │ └── security │ │ │ └── AuthenticationResult.java │ ├── security │ │ └── AuthenticationRestController.java │ └── user │ │ └── ApiUserRestController.java │ ├── config │ ├── AppConfig.java │ └── SecurityConfig.java │ ├── core │ ├── model │ │ └── ApiUser.java │ └── service │ │ ├── ApiUserService.java │ │ └── MessageSourceService.java │ ├── exception │ ├── NotFoundException.java │ ├── ServiceRuntimeException.java │ └── UnauthorizedException.java │ └── security │ ├── ApiUserAuthenticationProvider.java │ ├── ApiUserAuthenticationToken.java │ ├── EntryPointUnauthorizedHandler.java │ ├── JWT.java │ ├── JwtAccessDeniedHandler.java │ ├── JwtAuthentication.java │ └── JwtAuthenticationTokenFilter.java └── resources ├── application.yml ├── logback.xml └── messages └── messages.properties /.gitignore: -------------------------------------------------------------------------------- 1 | logs 2 | *.iml 3 | *.jar 4 | lib/ 5 | target -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/README.md -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/Application.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/api/GeneralExceptionHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/api/GeneralExceptionHandler.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/api/model/request/security/AuthenticationRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/api/model/request/security/AuthenticationRequest.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/api/model/response/ApiError.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/api/model/response/ApiError.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/api/model/response/ApiResult.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/api/model/response/ApiResult.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/api/model/response/security/AuthenticationResult.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/api/model/response/security/AuthenticationResult.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/api/security/AuthenticationRestController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/api/security/AuthenticationRestController.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/api/user/ApiUserRestController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/api/user/ApiUserRestController.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/config/AppConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/config/AppConfig.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/config/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/config/SecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/core/model/ApiUser.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/core/model/ApiUser.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/core/service/ApiUserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/core/service/ApiUserService.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/core/service/MessageSourceService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/core/service/MessageSourceService.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/exception/NotFoundException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/exception/NotFoundException.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/exception/ServiceRuntimeException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/exception/ServiceRuntimeException.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/exception/UnauthorizedException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/exception/UnauthorizedException.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/security/ApiUserAuthenticationProvider.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/security/ApiUserAuthenticationProvider.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/security/ApiUserAuthenticationToken.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/security/ApiUserAuthenticationToken.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/security/EntryPointUnauthorizedHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/security/EntryPointUnauthorizedHandler.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/security/JWT.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/security/JWT.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/security/JwtAccessDeniedHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/security/JwtAccessDeniedHandler.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/security/JwtAuthentication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/security/JwtAuthentication.java -------------------------------------------------------------------------------- /src/main/java/com/github/iyboklee/security/JwtAuthenticationTokenFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/java/com/github/iyboklee/security/JwtAuthenticationTokenFilter.java -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/resources/application.yml -------------------------------------------------------------------------------- /src/main/resources/logback.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/resources/logback.xml -------------------------------------------------------------------------------- /src/main/resources/messages/messages.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iyboklee/boot-security-jwt/HEAD/src/main/resources/messages/messages.properties --------------------------------------------------------------------------------