grafana 实现oauth登录需要修改的配置参数

1、此处首先修改grafana的配置

[auth.generic_oauth]
name = OAuth
enabled = true
allow_sign_up = true
#修改client_id
client_id = xxxxxxx
#修改client_secret
client_secret = xxxxxxxx
#修改scopes
scopes = openid email nickname
email_attribute_name =
email_attribute_path =
login_attribute_path =
name_attribute_path =
role_attribute_path =
id_token_attribute_name =
#修改auth_url
auth_url =http://1.1.1.1:9911/oauth/authorize
#修改token_url
token_url =http://1.1.1.1:9911/oauth/token
#修改api_url
api_url =http://1.1.1.1:9911/oauth/userinfo
allowed_domains =
team_ids =
allowed_organizations =
tls_skip_verify_insecure = false
tls_client_cert =
tls_client_key =
tls_client_ca =

#回调地址
root_url = http://当前主机ip:3000

#关闭登录框,只运行oauth登录
# Set to true to disable (hide) the login form, useful if you use OAuth
disable_login_form = true


版权声明:本文为gyk163原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。