From 40d073db0f109d9ec24cb65b9c2f348fbce11b06 Mon Sep 17 00:00:00 2001 From: landaiqing Date: Fri, 20 Dec 2024 01:19:29 +0800 Subject: [PATCH] :bug: fixed the issue that third-party login sessions were missing --- .idea/GOHCache.xml | 187 +++++++++++++----- app/core/api/common/constant/jwt_type.go | 6 + app/core/api/common/errors/errors.go | 19 ++ app/core/api/common/http/base.go | 85 ++++++++ app/core/api/common/http/responses.go | 100 ++++++++++ app/core/api/common/http/vars.go | 19 ++ app/core/api/common/jwt/access_token.go | 4 +- app/core/api/common/jwt/refresh_token.go | 2 +- app/core/api/core.api | 11 +- app/core/api/etc/core.yaml | 6 +- .../handler/oauth/gitee_callback_handler.go | 5 +- .../handler/oauth/github_callback_handler.go | 6 +- .../handler/oauth/qq_callback_handler.go | 6 +- app/core/api/internal/handler/routes.go | 2 +- .../handler/user/get_user_device_handler.go | 14 +- .../logic/oauth/gitee_callback_logic.go | 69 +++---- .../logic/oauth/github_callback_logic.go | 47 +++-- .../internal/logic/oauth/qq_callback_logic.go | 54 ++--- .../logic/oauth/wechat_callback_logic.go | 13 +- .../logic/token/refresh_token_logic.go | 15 +- .../logic/user/account_login_logic.go | 25 ++- .../logic/user/get_user_device_logic.go | 36 ++-- .../middleware/casbinverify_middleware.go | 5 +- app/core/api/internal/types/types.go | 4 + .../mysql/model/sca_auth_user.gen.go | 2 +- .../wechat_official/wechat_official.go | 7 +- go.sum | 115 +---------- 27 files changed, 556 insertions(+), 308 deletions(-) create mode 100644 app/core/api/common/constant/jwt_type.go create mode 100644 app/core/api/common/errors/errors.go create mode 100644 app/core/api/common/http/base.go create mode 100644 app/core/api/common/http/responses.go create mode 100644 app/core/api/common/http/vars.go diff --git a/.idea/GOHCache.xml b/.idea/GOHCache.xml index b64261c..5051818 100644 --- a/.idea/GOHCache.xml +++ b/.idea/GOHCache.xml @@ -38,6 +38,13 @@ + + + + + + @@ -45,6 +52,13 @@ + + + + + + @@ -640,6 +654,13 @@ + + + + + + @@ -647,6 +668,13 @@ + + + + + + @@ -952,6 +980,13 @@ + + + + + + @@ -987,6 +1022,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1049,7 +1123,7 @@ -