使用gitlab 對grafana用戶做認證


 登錄gitlab服務頁面創建應用AK

 

修改grafana的配置文件  grafana.ini 

#################################### GitLab Auth #########################
[auth.gitlab]
enabled = true
allow_sign_up = true
client_id = ab69a5a4a95c6dd425fe9021e241fd23b5542ed361cda7543c1359fe3368e21f
client_secret = 02c2d534fbb3eb64d3c97350a61cc8c5938904bf1268e380983e56f1c89ed99b
scopes = api
auth_url = https://git.wp.info/oauth/authorize   #  
token_url = https://git.wp.info/oauth/token
api_url = https://git.wp.info.com/api/v4
;allowed_domains =
;allowed_groups =

 重新啟動grafana-server服務,登錄頁面中出現調轉到gitlab做認證的按鈕

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM