不同版本jenkins对应插件版本

jenkins控制台安装插件默认是最新版本的,对应安装可能会出现不兼容版本的,而且会影响其他插件的问题插件官方地址地址
oic-auth插件地址

bash 复制代码
https://get.jenkins.io/plugins/oic-auth/

一、整体架构

用户 → Jenkins → (重定向) → Casdoor → 登录 → 回调 Jenkins → 登录成功

协议:OIDC(OAuth2)

二、Casdoor 侧配置

  1. 创建 Application

登录 Casdoor 后:

👉 Applications → New Application

关键配置:

Name:jenkins

Client ID / Secret:保存下来(后面 Jenkins 要用)

Redirect URLs(重点):

http:///securityRealm/finishLogin

例如:

http://jenkins.com/securityRealm/finishLogin

  1. 开启 OIDC

Casdoor 默认支持 OIDC,确认以下地址:

👉 OpenID 配置地址:

https:///.well-known/openid-configuration

例如:

https://sso.cn/.well-known/openid-configuration

你之前已经查过这个 👍

  1. 用户 & 组织

确保:

用户已经创建

用户属于某个组织(organization)

三、Jenkins 侧配置

  1. 安装插件

安装:

👉 OpenID Connect Authentication Plugin

在:

Manage Jenkins → Plugins

  1. 配置 Security Realm

路径:

Manage Jenkins → Security → Security Realm

选择:

👉 OpenID Connect

  1. 填写参数(核心)
    OIDC 配置
    配置项 值
    Client ID Casdoor 的 client_id
    Client Secret Casdoor 的 client_secret
    Discovery URL https:///.well-known/openid-configuration

例如:

https://sso.cn/.well-known/openid-configuration

Scope

openid profile email

User Name Field

preferred_username

或:

name

Email Field

email

  1. Root URL(非常重要)

路径:

Manage Jenkins → Configure System

设置:

Jenkins URL = http://jenkins.com/

⚠️ 必须和 Casdoor 回调一致!

四、登录流程验证

访问 Jenkins:

http://jenkins.com

👉 会跳转到 Casdoor 登录

👉 登录成功后回调 Jenkins

👉 自动创建用户并登录

接入sso属性配置:

防止sso登录不上,配置逃生舱账号密码登录入口,登录地址http://你的Jenkins地址/login?escape-hatch![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/9628c973d06b4fd5917c666b652aadbb.png)

相关推荐
名字还没想好☜15 分钟前
Docker buildx 多架构镜像实战:一次构建 amd64+arm64,告别 exec format error
运维·docker·eureka·架构·kubernetes
智购无人售货机厂家41 分钟前
2026自动售货机软硬件版本管理策略:从版本号规范到兼容性矩阵的工程实践~YH
运维·服务器·人工智能·单片机·嵌入式硬件·线性代数·矩阵
bksczm1 小时前
Linux 五种 I/O 模型与多路复用详解
运维·服务器·网络
wjcroom1 小时前
FileBrowser的docker运行了改变密码长度的做法
运维·docker·容器
IT爱学堂1 小时前
新版Linux零基础入门到高手Rocky版本-替换CentOS(完结)
linux·运维·centos
蒸蒸yyyyzwd2 小时前
cpp选手秋招学习笔记day24-cs144项目总结
运维·服务器·网络
ang7842 小时前
日常高频使用的 Ansible 命令,按使用频率和场景整理。
linux·运维·服务器
赵庆明老师3 小时前
用同一个用户登录宝塔面板的ftp与Linux的sftp
linux·运维·服务器
山君爱摸鱼3 小时前
堡垒机远程服务器故障收集
运维·服务器
不会就选b4 小时前
Linux之socket编程(六)----TCP-->模拟shell命令
linux·运维·tcp/ip