From 4b529a3661c1122a094a4b93bfda859c182dc1ca Mon Sep 17 00:00:00 2001 From: zlt2000 Date: Sun, 12 Jul 2020 15:59:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=8E=88=E6=9D=83=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/central/oauth/config/TokenGranterConfig.java | 4 +++- .../src/main/resources/static/pages/attestation/app.html | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/zlt-uaa/src/main/java/com/central/oauth/config/TokenGranterConfig.java b/zlt-uaa/src/main/java/com/central/oauth/config/TokenGranterConfig.java index 9a33761f..41f05419 100644 --- a/zlt-uaa/src/main/java/com/central/oauth/config/TokenGranterConfig.java +++ b/zlt-uaa/src/main/java/com/central/oauth/config/TokenGranterConfig.java @@ -17,6 +17,7 @@ import org.springframework.security.oauth2.provider.client.ClientCredentialsToke import org.springframework.security.oauth2.provider.code.AuthorizationCodeServices; import org.springframework.security.oauth2.provider.code.AuthorizationCodeTokenGranter; import org.springframework.security.oauth2.provider.code.InMemoryAuthorizationCodeServices; +import org.springframework.security.oauth2.provider.code.RandomValueAuthorizationCodeServices; import org.springframework.security.oauth2.provider.implicit.ImplicitTokenGranter; import org.springframework.security.oauth2.provider.password.ResourceOwnerPasswordTokenGranter; import org.springframework.security.oauth2.provider.refresh.RefreshTokenGranter; @@ -60,7 +61,8 @@ public class TokenGranterConfig { @Autowired private IValidateCodeService validateCodeService; - private AuthorizationCodeServices authorizationCodeServices; + @Autowired + private RandomValueAuthorizationCodeServices authorizationCodeServices; private boolean reuseRefreshToken = true; diff --git a/zlt-web/back-web/src/main/resources/static/pages/attestation/app.html b/zlt-web/back-web/src/main/resources/static/pages/attestation/app.html index dddc7fb0..4ce78a87 100644 --- a/zlt-web/back-web/src/main/resources/static/pages/attestation/app.html +++ b/zlt-web/back-web/src/main/resources/static/pages/attestation/app.html @@ -69,6 +69,9 @@ + + +