├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── net │ │ └── codejava │ │ ├── AppController.java │ │ ├── CustomOAuth2User.java │ │ ├── CustomOAuth2UserService.java │ │ ├── MvcConfig.java │ │ ├── MyUserDetails.java │ │ ├── Product.java │ │ ├── ProductManagerApplication.java │ │ ├── ProductRepository.java │ │ ├── ProductService.java │ │ ├── Provider.java │ │ ├── Role.java │ │ ├── User.java │ │ ├── UserDetailsServiceImpl.java │ │ ├── UserRepository.java │ │ ├── UserService.java │ │ └── WebSecurityConfig.java └── resources │ ├── application.yml │ └── templates │ ├── 403.html │ ├── edit_product.html │ ├── fragments.html │ ├── index.html │ ├── login.html │ ├── new_product.html │ └── products.html └── test └── java └── net └── codejava └── PasswordGenerator.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/.mvn/wrapper/MavenWrapperDownloader.java -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/README.md -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/net/codejava/AppController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/AppController.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/CustomOAuth2User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/CustomOAuth2User.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/CustomOAuth2UserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/CustomOAuth2UserService.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/MvcConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/MvcConfig.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/MyUserDetails.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/MyUserDetails.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/Product.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/Product.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/ProductManagerApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/ProductManagerApplication.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/ProductRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/ProductRepository.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/ProductService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/ProductService.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/Provider.java: -------------------------------------------------------------------------------- 1 | package net.codejava; 2 | 3 | public enum Provider { 4 | LOCAL, GOOGLE, FACEBOOK, GITHUB 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/net/codejava/Role.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/Role.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/User.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/UserDetailsServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/UserDetailsServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/UserRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/UserRepository.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/UserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/UserService.java -------------------------------------------------------------------------------- /src/main/java/net/codejava/WebSecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/java/net/codejava/WebSecurityConfig.java -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/resources/application.yml -------------------------------------------------------------------------------- /src/main/resources/templates/403.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/resources/templates/403.html -------------------------------------------------------------------------------- /src/main/resources/templates/edit_product.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/resources/templates/edit_product.html -------------------------------------------------------------------------------- /src/main/resources/templates/fragments.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/resources/templates/fragments.html -------------------------------------------------------------------------------- /src/main/resources/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/resources/templates/index.html -------------------------------------------------------------------------------- /src/main/resources/templates/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/resources/templates/login.html -------------------------------------------------------------------------------- /src/main/resources/templates/new_product.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/resources/templates/new_product.html -------------------------------------------------------------------------------- /src/main/resources/templates/products.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/main/resources/templates/products.html -------------------------------------------------------------------------------- /src/test/java/net/codejava/PasswordGenerator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codejava-official/spring-oauth2-google/HEAD/src/test/java/net/codejava/PasswordGenerator.java --------------------------------------------------------------------------------