From 138bf87e585f85d819971fd270a0b62a0ae19c88 Mon Sep 17 00:00:00 2001 From: "shengzhaoli.shengz" Date: Tue, 17 Oct 2023 11:00:42 +0800 Subject: [PATCH] oauth2.1 flow test --- .../java/com/monkeyk/sos/config/WebSecurityConfigurer.java | 2 +- src/main/resources/templates/clientdetails/test_client.html | 2 +- src/main/resources/templates/login.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/monkeyk/sos/config/WebSecurityConfigurer.java b/src/main/java/com/monkeyk/sos/config/WebSecurityConfigurer.java index 4fadcfc..b5c5815 100644 --- a/src/main/java/com/monkeyk/sos/config/WebSecurityConfigurer.java +++ b/src/main/java/com/monkeyk/sos/config/WebSecurityConfigurer.java @@ -66,7 +66,7 @@ public class WebSecurityConfigurer { formLoginConfigurer .loginPage("/login") .loginProcessingUrl("/signin") - .failureUrl("/login?error=1") + .failureUrl("/login?error_failed=true") // .defaultSuccessUrl("/") .usernameParameter("oidc_user") .passwordParameter("oidcPwd"); diff --git a/src/main/resources/templates/clientdetails/test_client.html b/src/main/resources/templates/clientdetails/test_client.html index 8d0c9e2..bfaadd7 100644 --- a/src/main/resources/templates/clientdetails/test_client.html +++ b/src/main/resources/templates/clientdetails/test_client.html @@ -57,7 +57,7 @@ 用 'code' 换取 'access_token'
输入第一步获取的code: + required="required" size="70"/>
diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html index df1f3a3..4c476ab 100644 --- a/src/main/resources/templates/login.html +++ b/src/main/resources/templates/login.html @@ -44,9 +44,9 @@
- Access denied !!! - Authentication Failure