Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
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
chenhao
hel-developer-guide
Commits
8255f30f
Commit
8255f30f
authored
Aug 02, 2017
by
高洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates sso-describe.md
Auto commit by GitBook Editor
parent
a8a3f1bb
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
53 additions
and
0 deletions
+53
-0
.gitignore
assets/后端开发/.gitignore
+0
-0
README.md
assets/后端开发/README.md
+0
-0
RabbitMq消息队列.md
assets/后端开发/RabbitMq消息队列.md
+0
-0
activiti-helper.md
assets/后端开发/activiti-helper.md
+0
-0
activiti.md
assets/后端开发/activiti.md
+0
-0
activiti_demo.md
assets/后端开发/activiti_demo.md
+0
-0
activiti_editor_helper.md
assets/后端开发/activiti_editor_helper.md
+0
-0
deployment.md
assets/后端开发/deployment.md
+0
-0
redis.md
assets/后端开发/redis.md
+0
-0
sso-describe.md
sso-describe.md
+52
-0
融租易开发手册.md
融租易开发手册.md
+1
-0
No files found.
.gitignore
→
assets/后端开发/
.gitignore
View file @
8255f30f
File moved
后端开发/README.md
→
assets/
后端开发/README.md
View file @
8255f30f
File moved
后端开发/RabbitMq消息队列.md
→
assets/
后端开发/RabbitMq消息队列.md
View file @
8255f30f
File moved
后端开发/activiti-helper.md
→
assets/
后端开发/activiti-helper.md
View file @
8255f30f
File moved
后端开发/activiti.md
→
assets/
后端开发/activiti.md
View file @
8255f30f
File moved
后端开发/activiti_demo.md
→
assets/
后端开发/activiti_demo.md
View file @
8255f30f
File moved
后端开发/activiti_editor_helper.md
→
assets/
后端开发/activiti_editor_helper.md
View file @
8255f30f
File moved
后端开发/deployment.md
→
assets/
后端开发/deployment.md
View file @
8255f30f
File moved
后端开发/redis.md
→
assets/
后端开发/redis.md
View file @
8255f30f
File moved
sso-describe.md
0 → 100644
View file @
8255f30f
# 单点登录
融租易目前支持单点登录成功后,可以跳转至登录前的URL。
> 注意系统管理-系统配置页面的配置项---登录成功跳转URL。默认设置为/index,则可以自动跳转至登录前的URL,如果改为自定义的其他页面,则会带上?targetUrl=xxx参数先跳转至系统配置的URL,可自行处理跳转。
可以配置CAS和标准登录并存,默认登录页面为SSO登录页面,访问/login,则可以进入标准登录页面。可以参照如下配置:
修改spring/casSecurity.xml
1.
添加用于标准登录的相关bean
```
xml
<beans:bean
id=
"loginFailureHandler"
class=
"com.hand.hap.security.LoginFailureHandler"
/>
<beans:bean
id=
"captchaVerifierFilter"
class=
"com.hand.hap.security.CaptchaVerifierFilter"
>
<beans:property
name=
"captchaField"
value=
"verifiCode"
/></beans:bean>
```
2.
修改认证配置
```
xml
<!-- CAS 认证配置 -->
<http
entry-point-ref=
"casEntryPoint"
access-decision-manager-ref=
"accessDecisionManager"
>
<csrf
disabled=
"true"
/>
<intercept-url
pattern=
"/resources/**"
access=
"permitAll"
/>
<intercept-url
pattern=
"/lib/**"
access=
"permitAll"
/>
<intercept-url
pattern=
"/common/**"
access=
"permitAll"
/>
<intercept-url
pattern=
"/login"
access=
"permitAll"
/>
<intercept-url
pattern=
"/verifiCode"
access=
"permitAll"
/>
<intercept-url
pattern=
"/login.html"
access=
"permitAll"
/>
<intercept-url
pattern=
"/**"
access=
"hasRole('ROLE_USER')"
/>
<form-login
login-page=
'/login'
authentication-success-handler-ref=
"successHandler"
authentication-failure-handler-ref=
"loginFailureHandler"
/>
<!-- 验证码拦截器 -->
<custom-filter
ref=
"captchaVerifierFilter"
before=
"FORM_LOGIN_FILTER"
/>
<custom-filter
ref=
"requestSingleLogoutFilter"
before=
"LOGOUT_FILTER"
/>
<custom-filter
position=
"CAS_FILTER"
ref=
"casFilter"
/>
<custom-filter
ref=
"singleLogoutFilter"
before=
"CAS_FILTER"
/>
<headers
defaults-disabled=
"true"
>
<cache-control/>
</headers>
</http>
```
3.
添加authentication-provider
```
xml
<authentication-manager
alias=
"authenticationManager"
>
<authentication-provider
ref=
"casAuthenticationProvider"
/>
<authentication-provider
user-service-ref=
"customUserDetailsService"
>
<password-encoder
ref=
"passwordManager"
/>
</authentication-provider>
</authentication-manager>
```
融租易开发手册.md
View file @
8255f30f
...
...
@@ -18,6 +18,7 @@
*
2.3 Checkstyle
*
III. 后端开发
*
3.1 单点登录
*
IV. 前端JavaScript开发
...
...
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