From 27f9b99e4c7969bf041e4143475047047f216eeb Mon Sep 17 00:00:00 2001 From: robin Date: Wed, 26 Jan 2022 14:29:04 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=87=8D=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../amu/summer/security/handler/RedirectHandler.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/alis-amu/alis-amu-server/src/main/java/org/alis/amu/summer/security/handler/RedirectHandler.java b/alis-amu/alis-amu-server/src/main/java/org/alis/amu/summer/security/handler/RedirectHandler.java index db18620..743e1cd 100644 --- a/alis-amu/alis-amu-server/src/main/java/org/alis/amu/summer/security/handler/RedirectHandler.java +++ b/alis-amu/alis-amu-server/src/main/java/org/alis/amu/summer/security/handler/RedirectHandler.java @@ -1,18 +1,16 @@ package org.alis.amu.summer.security.handler; -import org.springframework.security.oauth2.common.exceptions.OAuth2Exception; -import org.springframework.security.oauth2.provider.ClientDetails; -import org.springframework.security.oauth2.provider.endpoint.RedirectResolver; +import org.springframework.security.oauth2.provider.endpoint.DefaultRedirectResolver; /** * @author robin * @date 2022/1/26 14:26 */ -public class RedirectHandler implements RedirectResolver { +public class RedirectHandler extends DefaultRedirectResolver { @Override - public String resolveRedirect(String requestedRedirect, ClientDetails client) throws OAuth2Exception { - return requestedRedirect; + protected boolean redirectMatches(String requestedRedirect, String redirectUri) { + return super.redirectMatches(requestedRedirect, redirectUri); } }