From 9f259af5135c6dc7a143aadbea2c0acb3810db68 Mon Sep 17 00:00:00 2001 From: "shengzhaoli.shengz" Date: Sun, 29 Oct 2023 11:31:47 +0800 Subject: [PATCH] test_client oidc-logout --- .../templates/clientdetails/test_client.html | 50 +++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/clientdetails/test_client.html b/src/main/resources/templates/clientdetails/test_client.html index dd39e6c..c1afcd4 100644 --- a/src/main/resources/templates/clientdetails/test_client.html +++ b/src/main/resources/templates/clientdetails/test_client.html @@ -512,7 +512,7 @@ client_secret - @@ -552,7 +552,7 @@ client_secret - @@ -567,7 +567,7 @@ refresh_token + size="70" name="refresh_token" required="required"/>

请输入 refresh_token 值

@@ -581,6 +581,49 @@ +
+
Test OIDC-Logout OAuth2.1新增
+
+

对已经签发的id_token/access_token进行退出并重定向会指定的uri

+ +
+ + + + + + + + + + + + + + + + + +
client_id + +
id_token_hint + +

填写一个已经签发的id_token/access_token

+
post_logout_redirect_uri + +

退出后通过post重定向的uri

+
state + +

每次随机生成, spring-oauth-server原封不动返回(防止会话劫持攻击)

+
+ + GET + +
+
+
+
Back
@@ -611,6 +654,7 @@ //a temp value $scope.refreshToken = ""; $scope.clientAssertion = ""; + $scope.post_logout_redirect_uri = [[${clientDetailsDto.postLogoutRedirectUris}]]; $scope.state = Math.floor(Math.random() * 1000000000).toString(); }];