Skip to content

Commit

Permalink
fix: missing require user params (TencentBlueKing#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgetx authored and piglei committed Mar 21, 2024
1 parent 94da6a3 commit cab64c3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdks/bkpaas-auth/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 版本历史

## 2.0.7
## 2.0.8
- 将认证信息标准化到请求头 X-Bkapi-Authorization 中

## 2.0.6
Expand Down
1 change: 1 addition & 0 deletions sdks/bkpaas-auth/bkpaas_auth/core/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def _get_and_cache_user_info(cache_key, user_params, response_ok_checker):
headers={
"X-Bkapi-Authorization": json.dumps(dict(user_params, **get_app_credentials())),
},
params=user_params,
)
if not is_success:
raise ServiceError('Unable to get user info')
Expand Down
1 change: 1 addition & 0 deletions sdks/bkpaas-auth/bkpaas_auth/core/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def request_username(self, **credentials):
'blueking-language': get_language(),
"X-Bkapi-Authorization": json.dumps(dict(credentials, **get_app_credentials())),
},
params=credentials,
)
if not is_success:
raise ServiceError('unable to fetch token services')
Expand Down
2 changes: 1 addition & 1 deletion sdks/bkpaas-auth/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bkpaas-auth"
version = "2.0.7"
version = "2.0.8"
description = "User authentication django app for blueking internal projects"
readme = "README.md"
authors = ["blueking <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion sdks/bkpaas-auth/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
setup(
long_description=readme,
name='bkpaas-auth',
version='2.0.7',
version='2.0.8',
description='User authentication django app for blueking internal projects',
python_requires='<4.0,>=3.6',
author='blueking',
Expand Down

0 comments on commit cab64c3

Please sign in to comment.