From 6babd41f198f44522ce874fdff4a01dcfd305c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20B=C3=BChler?= Date: Thu, 3 Aug 2017 14:24:50 +0200 Subject: [PATCH 1/2] Fix logged property names when initializing OAuth2 client Closes gh-9944 --- .../authserver/OAuth2AuthorizationServerConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java index a96e730d5f..380a4f0d41 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java @@ -164,7 +164,7 @@ public class OAuth2AuthorizationServerConfiguration String prefix = "security.oauth2.client"; boolean defaultSecret = this.credentials.isDefaultSecret(); logger.info(String.format( - "Initialized OAuth2 Client%n%n%s.clientId = %s%n%s.secret = %s%n%n", + "Initialized OAuth2 Client%n%n%s.client-id = %s%n%s.client-secret = %s%n%n", prefix, this.credentials.getClientId(), prefix, defaultSecret ? this.credentials.getClientSecret() : "****")); } From e08d09f5a3fd154eb4740e5cd910ee4be8de1ec9 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 9 Aug 2017 11:26:56 +0100 Subject: [PATCH 2/2] Polish "Fix logged property names when initializing OAuth2 client" See gh-9944 --- .../authserver/OAuth2AuthorizationServerConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java index 380a4f0d41..fcb922a48c 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/authserver/OAuth2AuthorizationServerConfiguration.java @@ -164,7 +164,8 @@ public class OAuth2AuthorizationServerConfiguration String prefix = "security.oauth2.client"; boolean defaultSecret = this.credentials.isDefaultSecret(); logger.info(String.format( - "Initialized OAuth2 Client%n%n%s.client-id = %s%n%s.client-secret = %s%n%n", + "Initialized OAuth2 Client%n%n%s.client-id = %s%n" + + "%s.client-secret = %s%n%n", prefix, this.credentials.getClientId(), prefix, defaultSecret ? this.credentials.getClientSecret() : "****")); }