Jenkins single sign-on for CAS version 5.2x-yellowcong

Jenkins and cas are together. Although this is not necessary in the CI system, the unification of accounts makes it a lot easier for engineers to develop, without having to worry about so many passwords. For jenkins to support cas, the following steps are required: 1. Install the cas plugin, 2. Configure the global security configuration, set the CAS Server URL (the url address of your cas) and CAS Protocol (cas3.0), 3. Save, and rollout test

system structure

address Serve
http://yellowcong.com:8080 jenkins
http://yellowcong.com:9000 case

Configure cas single sign-on

1. Find system management
write picture description here

2. Search cas plugin
write picture description here

3. Install the cas plugin
write picture description here

4. Click [Global Security Configuration] to set the cas login system
write picture description here

5. Set the single sign-on address and protocol information
write picture description here

6. Test access
We visit http://yellowcong.com:8080 to access jenkins, and then jump to http://yellowcong.com:9000 of cas. After cas login, jump to jenkins. In this place, the user who logs in for the first time is admn, and then we need to manage the users of cas through Role-based Authorization Strategythis plugin.

Reference article

https://wiki.jenkins.io/display/JENKINS/CAS+Plugin

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324628025&siteId=291194637