当前位置:网站首页>CAS deployment and successful login jump address
CAS deployment and successful login jump address
2022-07-27 03:03:00 【Fear dominated by baldness】
1.CAS The login process
CAS In two parts :CAS Server and CAS Client, Each request first enters client,client Will identify whether it is carried service ticket(CAS Server The unique ID generated ), If not, it means that you are not logged in , Redirect to CAS Server,Server Send the login page to the user , The user fills in the account and password and submits it to Server, Login through Server Will generate a service ticket Send to CAS Client in , Each subsequent request will be carried ticket. The flow chart is as follows :
2.CAS Deploy
First download CASwar package . I'm going to use 5.3 edition , Direct download , Good configuration tomcat Can run .
https://gitee.com/zzh971213/cas
When the following screen appears, it means successful startup :
The above is the login address , Exit the login address and put login Change it to logout that will do
The default account and password are configured in application.properties in 
3.CAS Single sign on docking VUE
① stay router—》index.js Configure the global routing hook , Call before each route enters , Here's some of the code
if (
from.path.includes('/authorize') &&
to.path.includes(config.project.loginHeaderRouter)
) {
window.location.href = 'http://localhost:8070/login?service=http://192.168.1.89:8080/#/login';
}
If you are not logged in, jump to CAS Login page for http://localhost:8070/login, Here we will focus on why we need to add ?service=http://192.168.1.89:8080/#/login. It's to make CAS After successful login, redirect to service Back address
, An error may be reported here : Unauthorized Services 
terms of settlement : stay HTTPSandIMAPS-10000001.json Lieutenant general "serviceId" : “^(https|imaps)/.“, Change it to "serviceId” : "^(https|http|imaps)/.”, That is to add http
design sketch : Notice the changes in the address bar
open vue Landing page of the project 
After successful login, jump to 
Configure the jump page to log out : stay application.properties Add a row to , In this way, you can enter localhost:8080/logout Then it will redirect to www.baidu.com
cas.logout.redirectUrl=http://www.baidu.com
边栏推荐
- ArduinoUNO驱动RGB模块全彩效果示例
- I heard that you knelt on the interface test during the interview?
- Concept of data asset management
- LabVIEW中编程更改进程的优先级
- Rust Web(一)—— 自建TCP Server
- [二分查找简单题] LeetCode 35. 搜索插入位置,69. x 的平方根,367. 有效的完全平方数,441. 排列硬币
- [nisactf 2022] upper
- Shortcut keys commonly used in idea
- [redis] five common data types
- QT编译出来的exe以管理员权限启动
猜你喜欢

系统安全测试要怎么做,详细来说说

QT编译出来的exe以管理员权限启动

Play a parallel multithreaded mcu-mc3172

红宝书第四版的一个错误?

Jmeter接口测试, 快速完成一个单接口请求

「软件测试」包装简历从这几点出发,直接提升通过率

Okaleido Tiger 7.27日登录Binance NFT,首轮已获不俗成绩

Redis installation and operation (Linux)

Blog competition dare to try BAC for beginners

OD-Paper【3】:Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
随机推荐
QT编译出来的exe以管理员权限启动
Cloud development sleeping alarm clock wechat applet source code
"Software testing" packaging resume directly improves the pass rate from these points
Applet utils
Talk about connection pools and threads
[二分查找简单题] LeetCode 35. 搜索插入位置,69. x 的平方根,367. 有效的完全平方数,441. 排列硬币
What is a process?
Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community
Cookie addition, deletion, modification and query methods
OD-Paper【3】:Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
[动态规划简单题] LeetCode 53. 最大子数组和
人们为什么热衷于给事物排序
确定了,2022下半年软考报名8月开始
#博客大赛# 斗胆尝试浅入门之BAC
面试突击68:为什么 TCP 需要 3 次握手?
[NISACTF 2022]上
五、MFC视图窗口和文档
调用JShaman的Web API接口,实现JS代码加密。
White box test case design (my grandfather can understand it)
数据资产管理的概念