* code for task#1581.
This commit is contained in:
+24
-8
@@ -1,20 +1,20 @@
|
||||
<?php
|
||||
$lang->sso->common = 'SSO';
|
||||
$lang->sso->browse = 'Auth list';
|
||||
$lang->sso->create = 'Create auth';
|
||||
$lang->sso->edit = 'Edit auth';
|
||||
$lang->sso->delete = 'Delete auth';
|
||||
$lang->sso->browse = 'App list';
|
||||
$lang->sso->create = 'Create App';
|
||||
$lang->sso->edit = 'Edit App';
|
||||
$lang->sso->delete = 'Delete App';
|
||||
$lang->sso->code = 'Code';
|
||||
$lang->sso->title = 'Name';
|
||||
$lang->sso->key = 'Key';
|
||||
$lang->sso->ip = 'IP list';
|
||||
$lang->sso->createKey = 'Get new key';
|
||||
$lang->sso->createKey = 'New one';
|
||||
|
||||
$lang->sso->confirmDelete = 'Are you sure to delete this auth?';
|
||||
$lang->sso->confirmDelete = 'Are you sure to delete this App?';
|
||||
|
||||
$lang->sso->note = new stdClass();
|
||||
$lang->sso->note->title = 'site name';
|
||||
$lang->sso->note->code = 'site code';
|
||||
$lang->sso->note->title = 'app name';
|
||||
$lang->sso->note->code = 'app code';
|
||||
$lang->sso->note->ip = "Use comma between two IPs, and support IP segment, for example 192.168.1.*";
|
||||
|
||||
$lang->sso->error = new stdClass();
|
||||
@@ -24,4 +24,20 @@ $lang->sso->error->key = 'Please input key';
|
||||
$lang->sso->error->ip = 'Please input IP';
|
||||
|
||||
$lang->sso->instruction = <<<EOT
|
||||
<p><strong>Example</strong>:Name is 'Test'", Code is 'test', Key is '20c8eb0d522d2e1a09d4ea18e4df3a59',IP list is "192.168.11.*,127.0.0.1"。</p>
|
||||
<p><strong>1.User Auth</strong></p>
|
||||
<p>Application request API of user auth, check if the account and password is correct, to realize single sign-on (SSO).</p>
|
||||
<p>The API is from sso module, auth method. POST data is account and encrypted string [md5(md5(password) + key)]. Return user info(json) if success, return fail if fail.</p>
|
||||
<p>Example: url is 'http:://www.demo.com/sso-auth-test',POST string is 'account=admin&authcode=c44c577432230ad8e67160d3f9f0b91c'.</p>
|
||||
<p> Note: 'test' is App code, 'c44c577432230ad8e67160d3f9f0b91' is md5(md5('123456') + '20c8eb0d522d2e1a09d4ea18e4df3a59')</p>
|
||||
<p><strong>2.Get User List</strong></p>
|
||||
<p>Application request API of user list, get all user info of zentao.</p>
|
||||
<p>The API if from sso module, users method. POST data is key. Return user list (json) if success, return fail if fail.</p>
|
||||
<p>Example:url is 'http:://www.demo.com/sso-users-test', POST string is 'key=20c8eb0d522d2e1a09d4ea18e4df3a59'.</p>
|
||||
<p> Note: 'test' is App code, '20c8eb0d522d2e1a09d4ea18e4df3a59' is App key.</p>
|
||||
<p><strong>3.Get Dept List</strong></p>
|
||||
<p>Application request API of dept list, get all dept info of zentao.</p>
|
||||
<p>The API if from sso module, depts method. POST data is key. Return dept list (json) if success, return fail if fail.</p>
|
||||
<p>Example:url is 'http:://www.demo.com/sso-depts-test', POST string is 'key=20c8eb0d522d2e1a09d4ea18e4df3a59'.</p>
|
||||
<p> Note: 'test' is App code, '20c8eb0d522d2e1a09d4ea18e4df3a59' is App key.</p>
|
||||
EOT;
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
<?php
|
||||
$lang->sso->common = '单点登录';
|
||||
$lang->sso->browse = '授权列表';
|
||||
$lang->sso->create = '创建授权';
|
||||
$lang->sso->edit = '编辑授权';
|
||||
$lang->sso->delete = '删除授权';
|
||||
$lang->sso->browse = '应用列表';
|
||||
$lang->sso->create = '添加应用';
|
||||
$lang->sso->edit = '编辑应用';
|
||||
$lang->sso->delete = '删除应用';
|
||||
$lang->sso->code = '代号';
|
||||
$lang->sso->title = '名称';
|
||||
$lang->sso->key = '密钥';
|
||||
$lang->sso->ip = 'IP列表';
|
||||
$lang->sso->createKey = '重新生成密钥';
|
||||
|
||||
$lang->sso->confirmDelete = '您确定删除该授权吗?';
|
||||
$lang->sso->confirmDelete = '您确定删除该应用吗?';
|
||||
|
||||
$lang->sso->note = new stdClass();
|
||||
$lang->sso->note->title = '授权站点名称';
|
||||
$lang->sso->note->code = '授权站点代号';
|
||||
$lang->sso->note->ip = "允许该站点使用这些ip访问,多个ip使用逗号隔开。支持IP段,如192.168.1.*";
|
||||
$lang->sso->note->title = '授权应用名称';
|
||||
$lang->sso->note->code = '授权应用代号';
|
||||
$lang->sso->note->ip = "允许该应用使用这些ip访问,多个ip使用逗号隔开。支持IP段,如192.168.1.*";
|
||||
|
||||
$lang->sso->error = new stdClass();
|
||||
$lang->sso->error->title = '名称不能为空';
|
||||
|
||||
Reference in New Issue
Block a user