Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Saas层补充代理接口,增加相关接口的免登陆白名单 #862

Merged
merged 1 commit into from
Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/saas/bkuser_shell/config/common/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
r"/api/v1/web/passwords/reset/send_email/$",
r"/api/v1/web/passwords/reset/by_token/$",
r"/api/v1/web/version_logs/$",
r"/api/v1/web/passwords/settings/by_token/$",
r"/api/v1/web/passwords/reset/verification_code/send_sms/$",
r"/api/v1/web/passwords/reset/verification_code/verify/$",
# r"/reset_password$",
# r"/set_password$",
)
Expand Down
15 changes: 15 additions & 0 deletions src/saas/bkuser_shell/proxy/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@
CommonProxyNoAuthViewSet.as_view({"post": "request"}),
name="common.no_auth.proxy.3",
),
path(
"api/v1/web/passwords/settings/by_token/",
CommonProxyNoAuthViewSet.as_view({"get": "request"}),
name="common.no_auth.proxy.4",
),
path(
"api/v1/web/passwords/reset/verification_code/send_sms/",
CommonProxyNoAuthViewSet.as_view({"post": "request"}),
name="common.no_auth.proxy.5",
),
path(
"api/v1/web/passwords/reset/verification_code/verify/",
CommonProxyNoAuthViewSet.as_view({"post": "request"}),
name="common.no_auth.proxy.6",
),
# NOTE: 前端暂时切换成这个
path(
"api/v1/web/version_logs/",
Expand Down