rainycode 1.1.3__tar.gz → 1.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rainycode-1.1.3 → rainycode-1.1.4}/PKG-INFO +1 -1
- {rainycode-1.1.3 → rainycode-1.1.4}/common_servers/service/auth_svc.py +4 -2
- {rainycode-1.1.3 → rainycode-1.1.4}/pyproject.toml +1 -1
- {rainycode-1.1.3 → rainycode-1.1.4}/rainycode.egg-info/PKG-INFO +1 -1
- {rainycode-1.1.3 → rainycode-1.1.4}/common_base/aiorequests.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_base/consts.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_base/exception.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_base/logging.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_base/response.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_depends/auth_depend.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_models/__init__.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_models/base_model.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_models/user_model.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_models/wechat_model.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_servers/api/auth_api.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_servers/api/wechat_api.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_servers/router.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_servers/schemas/__init__.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_servers/schemas/auth_schema.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_servers/service/wechat_svc.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_utils/bcrypt_util.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_utils/captcha_util.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_utils/ip_util.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_utils/jwt_util.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_utils/snowflake_util.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/common_utils/wechat_util.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/core/base_config.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/core/databases/aiodb.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/core/databases/aioredis.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/core/middleware/http_middleware.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/core/start.py +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/rainycode.egg-info/SOURCES.txt +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/rainycode.egg-info/dependency_links.txt +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/rainycode.egg-info/requires.txt +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/rainycode.egg-info/top_level.txt +0 -0
- {rainycode-1.1.3 → rainycode-1.1.4}/setup.cfg +0 -0
|
@@ -173,7 +173,8 @@ class AuthService:
|
|
|
173
173
|
await AioRedis.set(f"{REDIS_PREFIX_OAUTH_STATE}{internal_state}", cache_value, ex=300)
|
|
174
174
|
|
|
175
175
|
# 构建回调地址
|
|
176
|
-
|
|
176
|
+
api_prefix = f"/api/{base_config.app_name}" if base_config.app_name else ""
|
|
177
|
+
callback_url = f"{base_config.base_url}{api_prefix}/wechat/oauth/callback"
|
|
177
178
|
|
|
178
179
|
return WechatUtil.build_oauth_url(
|
|
179
180
|
appid=app_config.app_id,
|
|
@@ -271,7 +272,8 @@ class AuthService:
|
|
|
271
272
|
await AioRedis.set(f"{REDIS_PREFIX_OAUTH_STATE}{new_state}", cache_value, ex=300)
|
|
272
273
|
|
|
273
274
|
# 构建 snsapi_userinfo 授权链接
|
|
274
|
-
|
|
275
|
+
api_prefix = f"/api/{base_config.app_name}" if base_config.app_name else ""
|
|
276
|
+
callback_url = f"{base_config.base_url}{api_prefix}/wechat/oauth/callback"
|
|
275
277
|
userinfo_auth_url = WechatUtil.build_oauth_url(
|
|
276
278
|
appid=app_config.app_id,
|
|
277
279
|
redirect_uri=callback_url,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|