Skip to content

Commit

Permalink
Merge pull request #862 from neronkl/fix_saas
Browse files Browse the repository at this point in the history
fix: Saas层补充代理接口,增加相关接口的免登陆白名单
  • Loading branch information
wklken authored Dec 21, 2022
2 parents 9e2f277 + 179c781 commit 5123191
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
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

0 comments on commit 5123191

Please sign in to comment.