Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
f6f8d13b
Commit
f6f8d13b
authored
Jul 30, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 添加说明文档
parent
f766596b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
12 deletions
+25
-12
api.py
apps/authentication/backends/api.py
+2
-0
_access_key_modal.html
...ntication/templates/authentication/_access_key_modal.html
+3
-0
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+20
-12
No files found.
apps/authentication/backends/api.py
View file @
f6f8d13b
...
@@ -184,6 +184,8 @@ class SignatureAuthentication(signature.SignatureAuthentication):
...
@@ -184,6 +184,8 @@ class SignatureAuthentication(signature.SignatureAuthentication):
# example implementation:
# example implementation:
try
:
try
:
key
=
AccessKey
.
objects
.
get
(
id
=
key_id
)
key
=
AccessKey
.
objects
.
get
(
id
=
key_id
)
if
not
key
.
is_active
:
return
None
,
None
user
,
secret
=
key
.
user
,
str
(
key
.
secret
)
user
,
secret
=
key
.
user
,
str
(
key
.
secret
)
return
user
,
secret
return
user
,
secret
except
AccessKey
.
DoesNotExist
:
except
AccessKey
.
DoesNotExist
:
...
...
apps/authentication/templates/authentication/_access_key_modal.html
View file @
f6f8d13b
...
@@ -14,6 +14,9 @@
...
@@ -14,6 +14,9 @@
}
}
</style>
</style>
<div
class=
"alert alert-info help-message"
>
{% trans 'Using api key sign api header, every requests header difference'%},
<a
href=
"https://tools.ietf.org/html/draft-cavage-http-signatures-08"
>
{% trans 'docs' %}
</a>
</div>
<table
class=
"table table-striped table-bordered table-hover "
id=
"access_key_list_table"
style=
"padding-top: 10px"
>
<table
class=
"table table-striped table-bordered table-hover "
id=
"access_key_list_table"
style=
"padding-top: 10px"
>
<thead>
<thead>
<tr>
<tr>
...
...
apps/locale/zh/LC_MESSAGES/django.mo
View file @
f6f8d13b
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
f6f8d13b
...
@@ -8,7 +8,7 @@ msgid ""
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-30 12:
20
+0800\n"
"POT-Creation-Date: 2019-07-30 12:
52
+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: Jumpserver team<ibuler@qq.com>\n"
"Language-Team: Jumpserver team<ibuler@qq.com>\n"
...
@@ -469,7 +469,7 @@ msgstr "更新"
...
@@ -469,7 +469,7 @@ msgstr "更新"
#: assets/templates/assets/label_list.html:40
#: assets/templates/assets/label_list.html:40
#: assets/templates/assets/system_user_detail.html:30
#: assets/templates/assets/system_user_detail.html:30
#: assets/templates/assets/system_user_list.html:86 audits/models.py:34
#: assets/templates/assets/system_user_list.html:86 audits/models.py:34
#: authentication/templates/authentication/_access_key_modal.html:6
2
#: authentication/templates/authentication/_access_key_modal.html:6
5
#: ops/templates/ops/task_list.html:64
#: ops/templates/ops/task_list.html:64
#: perms/templates/perms/asset_permission_detail.html:34
#: perms/templates/perms/asset_permission_detail.html:34
#: perms/templates/perms/asset_permission_list.html:178
#: perms/templates/perms/asset_permission_list.html:178
...
@@ -526,7 +526,7 @@ msgstr "创建远程应用"
...
@@ -526,7 +526,7 @@ msgstr "创建远程应用"
#: assets/templates/assets/system_user_list.html:60 audits/models.py:38
#: assets/templates/assets/system_user_list.html:60 audits/models.py:38
#: audits/templates/audits/operate_log_list.html:41
#: audits/templates/audits/operate_log_list.html:41
#: audits/templates/audits/operate_log_list.html:67
#: audits/templates/audits/operate_log_list.html:67
#: authentication/templates/authentication/_access_key_modal.html:
27
#: authentication/templates/authentication/_access_key_modal.html:
30
#: ops/templates/ops/adhoc_history.html:59 ops/templates/ops/task_adhoc.html:64
#: ops/templates/ops/adhoc_history.html:59 ops/templates/ops/task_adhoc.html:64
#: ops/templates/ops/task_history.html:65 ops/templates/ops/task_list.html:34
#: ops/templates/ops/task_history.html:65 ops/templates/ops/task_list.html:34
#: perms/forms/asset_permission.py:21
#: perms/forms/asset_permission.py:21
...
@@ -1413,7 +1413,7 @@ msgstr "获取认证信息错误"
...
@@ -1413,7 +1413,7 @@ msgstr "获取认证信息错误"
#: assets/templates/assets/_asset_user_auth_view_modal.html:97
#: assets/templates/assets/_asset_user_auth_view_modal.html:97
#: assets/templates/assets/_user_asset_detail_modal.html:23
#: assets/templates/assets/_user_asset_detail_modal.html:23
#: authentication/templates/authentication/_access_key_modal.html:14
0
#: authentication/templates/authentication/_access_key_modal.html:14
3
#: authentication/templates/authentication/_mfa_confirm_modal.html:53
#: authentication/templates/authentication/_mfa_confirm_modal.html:53
#: settings/templates/settings/_ldap_list_users_modal.html:99
#: settings/templates/settings/_ldap_list_users_modal.html:99
#: templates/_modal.html:22
#: templates/_modal.html:22
...
@@ -1695,7 +1695,7 @@ msgid "Date joined"
...
@@ -1695,7 +1695,7 @@ msgid "Date joined"
msgstr "创建日期"
msgstr "创建日期"
#: assets/templates/assets/asset_detail.html:150 authentication/models.py:15
#: assets/templates/assets/asset_detail.html:150 authentication/models.py:15
#: authentication/templates/authentication/_access_key_modal.html:2
5
#: authentication/templates/authentication/_access_key_modal.html:2
8
#: perms/models/asset_permission.py:115 perms/models/base.py:38
#: perms/models/asset_permission.py:115 perms/models/base.py:38
#: perms/templates/perms/asset_permission_create_update.html:55
#: perms/templates/perms/asset_permission_create_update.html:55
#: perms/templates/perms/asset_permission_detail.html:120
#: perms/templates/perms/asset_permission_detail.html:120
...
@@ -2138,7 +2138,7 @@ msgid "Success"
...
@@ -2138,7 +2138,7 @@ msgid "Success"
msgstr "成功"
msgstr "成功"
#: audits/models.py:32
#: audits/models.py:32
#: authentication/templates/authentication/_access_key_modal.html:3
5
#: authentication/templates/authentication/_access_key_modal.html:3
8
#: xpack/plugins/vault/templates/vault/vault.html:46
#: xpack/plugins/vault/templates/vault/vault.html:46
msgid "Create"
msgid "Create"
msgstr "创建"
msgstr "创建"
...
@@ -2251,7 +2251,7 @@ msgid "Search"
...
@@ -2251,7 +2251,7 @@ msgid "Search"
msgstr "搜索"
msgstr "搜索"
#: audits/templates/audits/login_log_list.html:50
#: audits/templates/audits/login_log_list.html:50
#: authentication/templates/authentication/_access_key_modal.html:2
3
#: authentication/templates/authentication/_access_key_modal.html:2
6
#: ops/templates/ops/adhoc_detail.html:49
#: ops/templates/ops/adhoc_detail.html:49
#: ops/templates/ops/adhoc_history_detail.html:49
#: ops/templates/ops/adhoc_history_detail.html:49
#: ops/templates/ops/task_detail.html:56
#: ops/templates/ops/task_detail.html:56
...
@@ -2270,7 +2270,7 @@ msgid "City"
...
@@ -2270,7 +2270,7 @@ msgid "City"
msgstr "城市"
msgstr "城市"
#: audits/templates/audits/login_log_list.html:59
#: audits/templates/audits/login_log_list.html:59
#: authentication/templates/authentication/_access_key_modal.html:2
6
#: authentication/templates/authentication/_access_key_modal.html:2
9
#: ops/templates/ops/task_list.html:32
#: ops/templates/ops/task_list.html:32
msgid "Date"
msgid "Date"
msgstr "日期"
msgstr "日期"
...
@@ -2416,22 +2416,30 @@ msgstr "ssh密钥"
...
@@ -2416,22 +2416,30 @@ msgstr "ssh密钥"
msgid "API key list"
msgid "API key list"
msgstr "API Key列表"
msgstr "API Key列表"
#: authentication/templates/authentication/_access_key_modal.html:24
#: authentication/templates/authentication/_access_key_modal.html:18
msgid "Using api key sign api header, every requests header difference"
msgstr "使用api key签名请求头,每个请求的头部是不一样的"
#: authentication/templates/authentication/_access_key_modal.html:18
msgid "docs"
msgstr "文档"
#: authentication/templates/authentication/_access_key_modal.html:27
msgid "Secret"
msgid "Secret"
msgstr "密文"
msgstr "密文"
#: authentication/templates/authentication/_access_key_modal.html:4
5
#: authentication/templates/authentication/_access_key_modal.html:4
8
msgid "Show"
msgid "Show"
msgstr "显示"
msgstr "显示"
#: authentication/templates/authentication/_access_key_modal.html:6
3
#: authentication/templates/authentication/_access_key_modal.html:6
6
#: users/models/user.py:288 users/templates/users/user_profile.html:94
#: users/models/user.py:288 users/templates/users/user_profile.html:94
#: users/templates/users/user_profile.html:163
#: users/templates/users/user_profile.html:163
#: users/templates/users/user_profile.html:166
#: users/templates/users/user_profile.html:166
msgid "Disable"
msgid "Disable"
msgstr "禁用"
msgstr "禁用"
#: authentication/templates/authentication/_access_key_modal.html:6
4
#: authentication/templates/authentication/_access_key_modal.html:6
7
#: users/models/user.py:289 users/templates/users/user_profile.html:92
#: users/models/user.py:289 users/templates/users/user_profile.html:92
#: users/templates/users/user_profile.html:170
#: users/templates/users/user_profile.html:170
msgid "Enable"
msgid "Enable"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment