cas集成sonar怎么配置
发表于:2025-11-11 作者:千家信息网编辑
千家信息网最后更新 2025年11月11日,本篇内容主要讲解"cas集成sonar怎么配置",感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习"cas集成sonar怎么配置"吧!一、修改 sonar 配置
千家信息网最后更新 2025年11月11日cas集成sonar怎么配置
本篇内容主要讲解"cas集成sonar怎么配置",感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习"cas集成sonar怎么配置"吧!
一、修改 sonar 配置 conf/sonar.properties
修改 sonar 配置文件 conf/sonar.properties:
sonar.security.realm = cas sonar.authenticator.createUsers = true #sonar.cas.forceCasLogin = true sonar.cas.protocol = cas3 sonar.cas.casServerUrlPrefix = http://192.168.1.58:8080/cas sonar.cas.casServerLoginUrl = http://192.168.1.58:8080/cas/login sonar.cas.casServerLogoutUrl = http://192.168.1.58:8080/cas/logout sonar.cas.sonarServerUrl = http://192.168.1.35:9200 sonar.cas.urlAfterCasRedirectCookieMaxAgeSeconds = 300 sonar.cas.sessionStorePath = /opt/sonarqube/data/sonarcas/sessionstore sonar.cas.sessionStore.cleanUpIntervalInSeconds = 1800 # Specifies whether gateway=true should be sent to the CAS server. Default is false. # sonar.cas.sendGateway # Specifies how SonarQube groups should be replicated. A value of "CAS" always overwrites the user's local groups with # the group provided by CAS upon UI log-in. The user's local groups will be untouched, f. i. with the value "sonarqube".# Defaults to "CAS". sonar.cas.groupReplication = CAS sonar.cas.rolesAttributes = groups sonar.cas.fullNameAttribute = displayName sonar.cas.eMailAttribute = mail sonar.cas.saml11.toleranceMilliseconds = 1000 sonar.cas.disableCertValidation = true
二、下载插件 sonar-cas-plugin
下载插件 sonar-cas-plugin,将插件拷贝至 sonar 的 extentions/plugins 目录下,并重启 sonar 服务。

三、修改 cas 配置文件 application.yml
修改 cas 配置文件 application.yml,修改内容如下:
# Application properties that need to be# embedded within the web application can be included herecas: authn: jdbc: query: - dialect: org.hibernate.dialect.MySQLDialect driverClass: com.mysql.jdbc.Driver fieldPassword: password password: 'xxxxxx' sql: select * from user where user_name=? url: jdbc:mysql://192.168.1.32:3306/cas?useUnicode=true&characterEncoding=utf-8&useSSL=false user: root serviceRegistry: initFromJson: true tgc: secure: false
四、修改 cas 配置文件 HTTPSandIMAPS-10000001.json
新增 cas/WEB-INF/classes/services/HTTPSandIMAPS-10000001.json 文件,添加 http 支持:
{ "@class" : "org.apereo.cas.services.RegexRegisteredService", "serviceId" : "^(https?|http?|imaps?)://.*", "name" : "All", "id" : 10000000, "description" : "This service definition authorizes all application urls that support HTTPS and IMAPS protocols.", "evaluationOrder" : 10000, "proxyPolicy" : { "@class" : "org.apereo.cas.services.RegexMatchingRegisteredServiceProxyPolicy", "pattern" : "^(https?|http?|imaps?)://.*" }, "usernameAttributeProvider" : { "@class" : "org.apereo.cas.services.DefaultRegisteredServiceUsernameProvider" }, "attributeReleasePolicy" : { "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy" }}到此,相信大家对"cas集成sonar怎么配置"有了更深的了解,不妨来实际操作一番吧!这里是网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!
配置
文件
内容
插件
学习
实用
更深
兴趣
实用性
实际
拷贝
操作简单
方法
更多
朋友
目录
网站
频道
f.
i.
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
第三方软件开发者
网络技术服务是做什么
电力信息通信网络安全
北京安全服务器电话
全国网络安全会议发言
数据库的登录号是个什么鬼
徐州IOS软件开发
unity 服务器寻路
能上网但是访问不了上级数据库
支付安全属于网络安全吗
美国国家计划局未来网络安全
广州环鑫网络技术有限公司
常用计算机网络技术
数据库为什么引入除运算
鬼魂服务器选哪个
网络技术有硬件嘛
目前从事网络安全运维工作
阿里云国际服务器安全吗
湖南计算机网络技术专业
数据库一个关系表会出现什么问题
网络安全评估步骤中常见问题
网络安全法尊重社会公德不得
移动数据库分那两步
重庆优思达互联网科技有限公司
停车场数据库名字
台州网络技术公司水果
网络技术有硬件嘛
魔力 无法读取服务器列表
陕西服务器机箱上哪找服务器
自动化软件开发视频教程