From daadddc8a262dee585b3624eee84a06ba136c8d6 Mon Sep 17 00:00:00 2001 From: yuxh Date: Tue, 20 Jun 2023 14:50:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96SSO?= =?UTF-8?q?=E7=99=BB=E5=85=A5=E7=99=BB=E5=87=BAURL=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/sso/url.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/sso/url.go b/services/sso/url.go index a45b2fb..e14e50e 100644 --- a/services/sso/url.go +++ b/services/sso/url.go @@ -13,7 +13,7 @@ func GetLoginUrl(ident string, redirectUrl string, env ...string) string { return fmt.Sprintf("%s://%s%s", scheme, host, uri) } -func GetLogout(ident string, env ...string) string { +func GetLogoutUrl(ident string, env ...string) string { uri := fmt.Sprintf("/admin/main/logout?ident=%s&redirectUrl=", ident) scheme, host := getSchemeAndHost(env...) return fmt.Sprintf("%s://%s%s", scheme, host, uri)