当前位置:网站首页>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
边栏推荐
- Inftnews | "traffic + experience" white lining e Digital Fashion Festival leads the new changes of digital fashion
- 批量复制宝贝上传提示乱码,如何解决?
- Manually build ABP framework from 0 -abp official complete solution and manually build simplified solution practice
- "Software testing" packaging resume directly improves the pass rate from these points
- Favicon网页收藏图标在线制作PHP网站源码/ICO图片在线生成/支持多种图片格式转换
- Sort icons with swiper
- day6
- OD-Paper【3】:Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
- [二分查找中等题] LeetCode 34. 在排序数组中查找元素的第一个和最后一个位置
- 制作ppt时间轴
猜你喜欢

What is a process?

CS224W fall 课程 ---- 1.1 why Graphs ?

C语言程序的编译(预处理)下

Plato Farm通过LaaS协议Elephant Swap,为社区用户带来全新体验

Goatgui invites you to attend a machine learning seminar

vs2019 中编译和使用 protobuf 库

Time module: acquisition and mutual transformation of timestamp, structured time and formatted time

iNFTnews | GGAC联合中国航天ASES 独家出品《中国2065典藏版》

Rust Web(一)—— 自建TCP Server

C language: deep learning recursion
随机推荐
Non global function of lua function
万字长文,带你搞懂 Kubernetes 网络模型
Inftnews | ggac and China Aerospace ases exclusively produce "China 2065 Collection Edition"
setTimeout第一个参数应该注意的地方
Redis installation and operation (Linux)
Applet utils
Arduinouno drive RGB module full color effect example
我的爬虫笔记(七) 通过爬虫实现blog访问量+1
Arduino UNO +74HC164流水灯示例
Goatgui invites you to attend a machine learning seminar
百度云人脸识别
哪家券商开户买REITs基金比较安全?
【RYU】安装RYU常见问题及解决办法
What did kubedmin do?
Talk about connection pools and threads
ArduinoUNO驱动RGB模块全彩效果示例
Static keyword
Okaleido tiger logged into binance NFT on July 27, and has achieved good results in the first round
快速排序(Quick sort)
OD-Paper【3】:Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks