From 3522c0537b56226b6fc0d580e3eabc48c950b4db Mon Sep 17 00:00:00 2001 From: DOHA Date: Thu, 2 Feb 2017 14:00:34 +0200 Subject: [PATCH] rename openID module --- .gitignore | 3 ++- pom.xml | 2 +- {spring-openid => spring-security-openid}/README.md | 8 +++----- {spring-openid => spring-security-openid}/pom.xml | 4 ++-- .../org/baeldung/config/GoogleOpenIdConnectConfig.java | 0 .../src/main/java/org/baeldung/config/HomeController.java | 0 .../src/main/java/org/baeldung/config/SecurityConfig.java | 0 .../java/org/baeldung/config/SpringOpenidApplication.java | 0 .../java/org/baeldung/security/OpenIdConnectFilter.java | 0 .../org/baeldung/security/OpenIdConnectUserDetails.java | 0 .../resources/application.properties.sample.properties | 0 11 files changed, 8 insertions(+), 9 deletions(-) rename {spring-openid => spring-security-openid}/README.md (63%) rename {spring-openid => spring-security-openid}/pom.xml (95%) rename {spring-openid => spring-security-openid}/src/main/java/org/baeldung/config/GoogleOpenIdConnectConfig.java (100%) rename {spring-openid => spring-security-openid}/src/main/java/org/baeldung/config/HomeController.java (100%) rename {spring-openid => spring-security-openid}/src/main/java/org/baeldung/config/SecurityConfig.java (100%) rename {spring-openid => spring-security-openid}/src/main/java/org/baeldung/config/SpringOpenidApplication.java (100%) rename {spring-openid => spring-security-openid}/src/main/java/org/baeldung/security/OpenIdConnectFilter.java (100%) rename {spring-openid => spring-security-openid}/src/main/java/org/baeldung/security/OpenIdConnectUserDetails.java (100%) rename {spring-openid => spring-security-openid}/src/main/resources/application.properties.sample.properties (100%) diff --git a/.gitignore b/.gitignore index 1352c943be..784627b616 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,5 @@ target/ spring-openid/src/main/resources/application.properties .recommenders/ -/spring-hibernate4/nbproject/ \ No newline at end of file +/spring-hibernate4/nbproject/ +spring-security-openid/src/main/resources/application.properties diff --git a/pom.xml b/pom.xml index 5858c69556..06feb5e4f5 100644 --- a/pom.xml +++ b/pom.xml @@ -139,7 +139,7 @@ spring-mvc-web-vs-initializer spring-mvc-xml spring-mvc-simple - spring-openid + spring-security-openid spring-protobuf spring-quartz spring-rest-angular diff --git a/spring-openid/README.md b/spring-security-openid/README.md similarity index 63% rename from spring-openid/README.md rename to spring-security-openid/README.md index c5989217f4..79bf44f374 100644 --- a/spring-openid/README.md +++ b/spring-security-openid/README.md @@ -2,15 +2,13 @@ ## OpenID Connect with Spring Security - -### Build the Project +### Run the Project ``` -mvn clean install +mvn spring-boot:run ``` - ### Obtain Google App - Client ID, Secret -- You need to get client id and client secret from [Google Developer Console](https://console.developers.google.com/project/_/apiui/credential?pli=1) +- You need to get client id and client secret by creating a new project at [Google Developer Console](https://console.developers.google.com/project/_/apiui/credential?pli=1) - Make sure to add OAuth2 credentials by selecting Add credentials > OAuth 2.0 client ID - Make sure you set redirect URI to http://localhost:8081/google-login diff --git a/spring-openid/pom.xml b/spring-security-openid/pom.xml similarity index 95% rename from spring-openid/pom.xml rename to spring-security-openid/pom.xml index 6646cdea14..6e5db533d7 100644 --- a/spring-openid/pom.xml +++ b/spring-security-openid/pom.xml @@ -3,11 +3,11 @@ 4.0.0 com.baeldung - spring-openid + spring-security-openid 0.0.1-SNAPSHOT war - spring-openid + spring-security-openid Spring OpenID sample project diff --git a/spring-openid/src/main/java/org/baeldung/config/GoogleOpenIdConnectConfig.java b/spring-security-openid/src/main/java/org/baeldung/config/GoogleOpenIdConnectConfig.java similarity index 100% rename from spring-openid/src/main/java/org/baeldung/config/GoogleOpenIdConnectConfig.java rename to spring-security-openid/src/main/java/org/baeldung/config/GoogleOpenIdConnectConfig.java diff --git a/spring-openid/src/main/java/org/baeldung/config/HomeController.java b/spring-security-openid/src/main/java/org/baeldung/config/HomeController.java similarity index 100% rename from spring-openid/src/main/java/org/baeldung/config/HomeController.java rename to spring-security-openid/src/main/java/org/baeldung/config/HomeController.java diff --git a/spring-openid/src/main/java/org/baeldung/config/SecurityConfig.java b/spring-security-openid/src/main/java/org/baeldung/config/SecurityConfig.java similarity index 100% rename from spring-openid/src/main/java/org/baeldung/config/SecurityConfig.java rename to spring-security-openid/src/main/java/org/baeldung/config/SecurityConfig.java diff --git a/spring-openid/src/main/java/org/baeldung/config/SpringOpenidApplication.java b/spring-security-openid/src/main/java/org/baeldung/config/SpringOpenidApplication.java similarity index 100% rename from spring-openid/src/main/java/org/baeldung/config/SpringOpenidApplication.java rename to spring-security-openid/src/main/java/org/baeldung/config/SpringOpenidApplication.java diff --git a/spring-openid/src/main/java/org/baeldung/security/OpenIdConnectFilter.java b/spring-security-openid/src/main/java/org/baeldung/security/OpenIdConnectFilter.java similarity index 100% rename from spring-openid/src/main/java/org/baeldung/security/OpenIdConnectFilter.java rename to spring-security-openid/src/main/java/org/baeldung/security/OpenIdConnectFilter.java diff --git a/spring-openid/src/main/java/org/baeldung/security/OpenIdConnectUserDetails.java b/spring-security-openid/src/main/java/org/baeldung/security/OpenIdConnectUserDetails.java similarity index 100% rename from spring-openid/src/main/java/org/baeldung/security/OpenIdConnectUserDetails.java rename to spring-security-openid/src/main/java/org/baeldung/security/OpenIdConnectUserDetails.java diff --git a/spring-openid/src/main/resources/application.properties.sample.properties b/spring-security-openid/src/main/resources/application.properties.sample.properties similarity index 100% rename from spring-openid/src/main/resources/application.properties.sample.properties rename to spring-security-openid/src/main/resources/application.properties.sample.properties