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: missing require user params #146

Merged
merged 1 commit into from
Dec 26, 2023
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
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
Loading