├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml ├── spring-boot-refresh-token-jwt-example-flow.png ├── spring-boot-spring-security-postgresql-jwt-authentication-architecture.png ├── spring-boot-spring-security-postgresql-jwt-authentication-flow.png └── src ├── main ├── java │ └── com │ │ └── bezkoder │ │ └── spring │ │ └── security │ │ └── postgresql │ │ ├── SpringBootSecurityPostgresqlApplication.java │ │ ├── controllers │ │ ├── AuthController.java │ │ └── TestController.java │ │ ├── models │ │ ├── ERole.java │ │ ├── Role.java │ │ └── User.java │ │ ├── payload │ │ ├── request │ │ │ ├── LoginRequest.java │ │ │ └── SignupRequest.java │ │ └── response │ │ │ ├── JwtResponse.java │ │ │ └── MessageResponse.java │ │ ├── repository │ │ ├── RoleRepository.java │ │ └── UserRepository.java │ │ └── security │ │ ├── WebSecurityConfig.java │ │ ├── jwt │ │ ├── AuthEntryPointJwt.java │ │ ├── AuthTokenFilter.java │ │ └── JwtUtils.java │ │ └── services │ │ ├── UserDetailsImpl.java │ │ └── UserDetailsServiceImpl.java └── resources │ └── application.properties └── test └── java └── com └── bezkoder └── spring └── security └── postgresql └── SpringBootSecurityPostgresqlApplicationTests.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/.mvn/wrapper/MavenWrapperDownloader.java -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/README.md -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/pom.xml -------------------------------------------------------------------------------- /spring-boot-refresh-token-jwt-example-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/spring-boot-refresh-token-jwt-example-flow.png -------------------------------------------------------------------------------- /spring-boot-spring-security-postgresql-jwt-authentication-architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/spring-boot-spring-security-postgresql-jwt-authentication-architecture.png -------------------------------------------------------------------------------- /spring-boot-spring-security-postgresql-jwt-authentication-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/spring-boot-spring-security-postgresql-jwt-authentication-flow.png -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/SpringBootSecurityPostgresqlApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/SpringBootSecurityPostgresqlApplication.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/controllers/AuthController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/controllers/AuthController.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/controllers/TestController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/controllers/TestController.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/models/ERole.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/models/ERole.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/models/Role.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/models/Role.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/models/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/models/User.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/payload/request/LoginRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/payload/request/LoginRequest.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/payload/request/SignupRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/payload/request/SignupRequest.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/payload/response/JwtResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/payload/response/JwtResponse.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/payload/response/MessageResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/payload/response/MessageResponse.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/repository/RoleRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/repository/RoleRepository.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/repository/UserRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/repository/UserRepository.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/security/WebSecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/security/WebSecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/security/jwt/AuthEntryPointJwt.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/security/jwt/AuthEntryPointJwt.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/security/jwt/AuthTokenFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/security/jwt/AuthTokenFilter.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/security/jwt/JwtUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/security/jwt/JwtUtils.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/security/services/UserDetailsImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/security/services/UserDetailsImpl.java -------------------------------------------------------------------------------- /src/main/java/com/bezkoder/spring/security/postgresql/security/services/UserDetailsServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/java/com/bezkoder/spring/security/postgresql/security/services/UserDetailsServiceImpl.java -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/main/resources/application.properties -------------------------------------------------------------------------------- /src/test/java/com/bezkoder/spring/security/postgresql/SpringBootSecurityPostgresqlApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezkoder/spring-boot-security-postgresql/HEAD/src/test/java/com/bezkoder/spring/security/postgresql/SpringBootSecurityPostgresqlApplicationTests.java --------------------------------------------------------------------------------