From b69cc45ff0a6f336f161e71d8090455441de76bc Mon Sep 17 00:00:00 2001
From: liquidjoo
Date: Tue, 4 Aug 2020 14:11:58 +0900
Subject: [PATCH] chore : clean code
---
.../service/sso/DefaultSsoService.java | 1 -
.../src/main/resources/application.properties | 15 +---
.../main/resources/templates/authorize.html | 16 ++--
.../src/main/resources/templates/login.html | 41 +++++-----
.../contents/ContentsApplication.java | 8 +-
.../gatewayzuul/GatewayZuulApplication.java | 23 +-----
.../gatewayzuul/config/SecurityConfig.java | 75 +++++++++----------
.../DynamicOauth2ClientContextFilter.java | 4 +-
.../filter/HeaderEnhanceFilter.java | 1 -
.../src/main/resources/application.properties | 14 +---
.../resources/application.properties | 4 -
.../testservice/TestServiceApplication.java | 12 +--
.../src/main/resources/application.properties | 5 +-
.../src/main/resources/templates/signIn.html | 35 +++++----
.../src/main/resources/templates/signUp.html | 35 +++++----
.../TestServiceApplicationTests.java | 1 -
16 files changed, 125 insertions(+), 165 deletions(-)
diff --git a/authorization-server/src/main/java/io/bluemoon/authorizationserver/service/sso/DefaultSsoService.java b/authorization-server/src/main/java/io/bluemoon/authorizationserver/service/sso/DefaultSsoService.java
index 4e6cf4a..f1c967d 100644
--- a/authorization-server/src/main/java/io/bluemoon/authorizationserver/service/sso/DefaultSsoService.java
+++ b/authorization-server/src/main/java/io/bluemoon/authorizationserver/service/sso/DefaultSsoService.java
@@ -7,7 +7,6 @@ import io.bluemoon.authorizationserver.domain.oauth.client.ClientRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
-import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
diff --git a/authorization-server/src/main/resources/application.properties b/authorization-server/src/main/resources/application.properties
index 7fdef19..32aa131 100644
--- a/authorization-server/src/main/resources/application.properties
+++ b/authorization-server/src/main/resources/application.properties
@@ -1,9 +1,7 @@
server.port=8081
server.servlet.context-path=/mk-auth
server.use-forward-headers=false
-
security.oauth2.authorization.check-token-access=isAuthenticated()
-
spring.main.allow-bean-definition-overriding=true
spring.datasource.url=jdbc:mysql://127.0.0.1/oauth2?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&serverTimezone=UTC
spring.datasource.username=root
@@ -11,23 +9,16 @@ spring.datasource.password=bluemoon
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.platform=schema
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDB53Dialect
-
-
-
-spring.jpa.database = MYSQL
+spring.jpa.database=MYSQL
spring.jpa.hibernate.ddl-auto=update
spring.jpa.generate-ddl=true
spring.jpa.show-sql=true
#spring.jpa.generate-ddl=false
#spring.jpa.hibernate.ddl-auto=none
-
spring.security.oauth2.client.registration.facebook.client-id=715358882216622
spring.security.oauth2.client.registration.facebook.client-secret=a39d8f1e06e8c3863d12e8461f4991e8
-
spring.security.oauth2.client.registration.google.client-id=534360107417-qhkkasmnj4tml8iuk3v1dh72ipjvf2qp.apps.googleusercontent.com
spring.security.oauth2.client.registration.google.client-secret=XkmQ3KPTpmTkWb8X6_1WRR5i
-
-
#facebook.client.access-token-uri=https://graph.facebook.com/oauth/access_token
#facebook.client.user-authorization-uri=https://www.facebook.com/dialog/oauth
#facebook.client.token-name=oauth_token
@@ -35,7 +26,5 @@ spring.security.oauth2.client.registration.google.client-secret=XkmQ3KPTpmTkWb8X
#facebook.client.client-authentication-scheme=form
#
#facebook.resource.user-info-uri=https://graph.facebook.com/me?fields=id
-
-
logging.level.web=debug
-spring.http.log-request-details=true
\ No newline at end of file
+spring.http.log-request-details=true
diff --git a/authorization-server/src/main/resources/templates/authorize.html b/authorization-server/src/main/resources/templates/authorize.html
index 90373b7..6bf01af 100644
--- a/authorization-server/src/main/resources/templates/authorize.html
+++ b/authorization-server/src/main/resources/templates/authorize.html
@@ -10,16 +10,16 @@
protected resources
with scope ${authorizationRequest.scope?join(", ")}.
-
-
diff --git a/authorization-server/src/main/resources/templates/login.html b/authorization-server/src/main/resources/templates/login.html
index f6bb88b..038ea9d 100644
--- a/authorization-server/src/main/resources/templates/login.html
+++ b/authorization-server/src/main/resources/templates/login.html
@@ -1,47 +1,52 @@
-
+
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+