mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
SAML: graph api follow up (#89389)
* add new graph api variables to saml strategy * add config variable
This commit is contained in:
parent
91628158f2
commit
ccb22e5b24
@ -63,6 +63,10 @@ func (s *SAMLStrategy) loadSAMLSettings() map[string]any {
|
||||
"role_values_grafana_admin": section.KeyValue("role_values_grafana_admin").MustString(""),
|
||||
"name_id_format": section.KeyValue("name_id_format").MustString(""),
|
||||
"skip_org_role_sync": section.KeyValue("skip_org_role_sync").MustBool(false),
|
||||
"client_id": section.KeyValue("client_id").MustString(""),
|
||||
"client_secret": section.KeyValue("client_secret").MustString(""),
|
||||
"token_url": section.KeyValue("token_url").MustString(""),
|
||||
"force_use_graph_api": section.KeyValue("force_use_graph_api").MustBool(false),
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
@ -45,6 +45,10 @@ var (
|
||||
name_id_format = urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
|
||||
skip_org_role_sync = false
|
||||
role_values_none = guest disabled
|
||||
token_url = http://localhost:8086/auth/realms/grafana/protocol/openid-connect/token
|
||||
client_id = grafana
|
||||
client_secret = grafana
|
||||
force_use_graph_api = false
|
||||
`
|
||||
|
||||
expectedSAMLInfo = map[string]any{
|
||||
@ -79,6 +83,10 @@ var (
|
||||
"name_id_format": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",
|
||||
"skip_org_role_sync": false,
|
||||
"role_values_none": "guest disabled",
|
||||
"token_url": "http://localhost:8086/auth/realms/grafana/protocol/openid-connect/token",
|
||||
"client_id": "grafana",
|
||||
"client_secret": "grafana",
|
||||
"force_use_graph_api": false,
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user