Fix Grafana OIDC: add root_url and update role_attribute_path to MAS ULID
This commit is contained in:
@@ -88,3 +88,17 @@ grafana:
|
|||||||
access: proxy
|
access: proxy
|
||||||
url: http://victoria-metrics.metrics.svc.cluster.local:8428
|
url: http://victoria-metrics.metrics.svc.cluster.local:8428
|
||||||
isDefault: false
|
isDefault: false
|
||||||
|
assertNoLeakedSecrets: false
|
||||||
|
grafana.ini:
|
||||||
|
server:
|
||||||
|
root_url: https://grafana.mrt0rtikize.ru
|
||||||
|
auth.generic_oauth:
|
||||||
|
enabled: true
|
||||||
|
name: MAS
|
||||||
|
client_id: 01KQZH732S9CB8008FG115A38J
|
||||||
|
client_secret: KefR7H9CwS9UWvJP3vP5
|
||||||
|
scopes: openid email
|
||||||
|
auth_url: https://auth.t0rt1k.tech/authorize
|
||||||
|
token_url: https://auth.t0rt1k.tech/oauth2/token
|
||||||
|
api_url: https://auth.t0rt1k.tech/oauth2/userinfo
|
||||||
|
role_attribute_path: "contains(sub, '01KKXR69CG7Y7BEM4QD2DYKMXN') && 'Admin' || 'Viewer'"
|
||||||
|
|||||||
Reference in New Issue
Block a user