最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

單點登錄之cas集成sonar的配置方法

 更新時間:2022年03月21日 12:27:31   作者:鄧鄧子2021  
這篇文章主要介紹了單點登錄之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 服務。
下載鏈接:https://github.com/cloudogu/sonar-cas-plugin/releases

在這里插入圖片描述

三、修改 cas 配置文件 application.yml

修改 cas 配置文件 application.yml,修改內(nèi)容如下:

                                                         
# Application properties that need to be
# embedded within the web application can be included here
cas:
  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的文章就介紹到這了,更多相關cas集成sonar內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!

相關文章

  • Web端掃碼登錄的原理和實現(xiàn)講解

    Web端掃碼登錄的原理和實現(xiàn)講解

    這篇文章主要介紹了Web端掃碼登錄的原理和實現(xiàn),掃碼登錄相比較傳統(tǒng)的密碼登錄更加快捷和安全,今天我們就來講講原理與實現(xiàn),主要分為幾種不同的解決方案,需要的朋友可以參考下
    2023-03-03
  • 算法系列15天速成 第十四天 圖【上】

    算法系列15天速成 第十四天 圖【上】

    越是復雜的東西越能體現(xiàn)我們碼農(nóng)的核心競爭力,既然要學習圖,得要遵守一下圖的游戲規(guī)則
    2013-11-11
  • npm script 的文件監(jiān)聽和自動刷新的命令詳解

    npm script 的文件監(jiān)聽和自動刷新的命令詳解

    文件監(jiān)聽的作用是為了實現(xiàn)自動化,釋放雙手和精力,提高效率,讓開發(fā)者更加關注于開發(fā)。這篇文章主要介紹了npm script 的文件監(jiān)聽和自動刷新,需要的朋友可以參考下
    2019-06-06
  • Application,Session,Cookies對象應用介紹

    Application,Session,Cookies對象應用介紹

    Application,Session,Cookies對象比較,對于客戶端保存登錄信息的朋友可以參考下。
    2011-05-05
  • git 多賬戶配置完整實現(xiàn)過程詳解

    git 多賬戶配置完整實現(xiàn)過程詳解

    這篇文章主要為大家介紹了git 多賬戶配置完整實現(xiàn)過程詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪
    2023-07-07
  • Sublime將數(shù)據(jù)json格式化的操作方法

    Sublime將數(shù)據(jù)json格式化的操作方法

    這篇文章主要介紹了Sublime將數(shù)據(jù)json格式化的操作方法,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2023-06-06
  • git 配置多個SSH-Key實現(xiàn)示例

    git 配置多個SSH-Key實現(xiàn)示例

    這篇文章主要為大家介紹了git 配置多個SSH-Key實現(xiàn)示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪
    2023-07-07
  • Git 教程之安裝配置詳解

    Git 教程之安裝配置詳解

    本文主要介紹Git 安裝配置,這里對Linux,Windows,Mac平臺的安裝做了詳細介紹,有需要的朋友可以參考下
    2016-09-09
  • 改良程序的11技巧分享

    改良程序的11技巧分享

    有很多理由都能說明為什么我們應該寫出清晰、可讀性好的程序。最重要的一點,程序你只寫一次,但以后會無數(shù)次的閱讀
    2011-10-10
  • chatGPT與傳統(tǒng)搜索結(jié)合創(chuàng)建新一代搜索引擎

    chatGPT與傳統(tǒng)搜索結(jié)合創(chuàng)建新一代搜索引擎

    這篇文章主要為大家介紹了chatGPT與傳統(tǒng)搜索結(jié)合創(chuàng)建新一代搜索引擎優(yōu)點詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪
    2023-01-01

最新評論

昔阳县| 五峰| 象州县| 稷山县| 潮州市| 香港 | 北安市| 天镇县| 五原县| 察哈| 高青县| 山东省| 灌云县| 昂仁县| 旅游| 内江市| 沙坪坝区| 施秉县| 西华县| 日土县| 云安县| 贺兰县| 鸡东县| 兴和县| 香格里拉县| 通山县| 马尔康县| 两当县| 临澧县| 高安市| 五峰| 澜沧| 巴塘县| 保山市| 双桥区| 嵊泗县| 海口市| 太和县| 岱山县| 醴陵市| 同江市|