mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Auth: Add missing Name property to SAML strategy (#94565)
Add Name to SAML strategy
This commit is contained in:
@@ -33,6 +33,7 @@ func (s *SAMLStrategy) loadSAMLSettings() map[string]any {
|
||||
section := s.settingsProvider.Section("auth.saml")
|
||||
result := map[string]any{
|
||||
"enabled": section.KeyValue("enabled").MustBool(false),
|
||||
"name": section.KeyValue("name").MustString("SAML"),
|
||||
"single_logout": section.KeyValue("single_logout").MustBool(false),
|
||||
"allow_sign_up": section.KeyValue("allow_sign_up").MustBool(false),
|
||||
"auto_login": section.KeyValue("auto_login").MustBool(false),
|
||||
|
||||
@@ -16,8 +16,9 @@ var (
|
||||
[auth.saml]
|
||||
enabled = true
|
||||
single_logout = true
|
||||
name = "SAML Test"
|
||||
allow_sign_up = true
|
||||
auto_login = false
|
||||
auto_login = true
|
||||
certificate = devenv/docker/blocks/auth/saml-enterprise/cert.crt
|
||||
certificate_path = /path/to/cert
|
||||
private_key = dGhpcyBpcyBteSBwcml2YXRlIGtleSB0aGF0IEkgd2FudCB0byBnZXQgZW5jb2RlZCBpbiBiYXNlIDY0
|
||||
@@ -55,7 +56,8 @@ var (
|
||||
"enabled": true,
|
||||
"single_logout": true,
|
||||
"allow_sign_up": true,
|
||||
"auto_login": false,
|
||||
"auto_login": true,
|
||||
"name": "SAML Test",
|
||||
"certificate": "devenv/docker/blocks/auth/saml-enterprise/cert.crt",
|
||||
"certificate_path": "/path/to/cert",
|
||||
"private_key": "dGhpcyBpcyBteSBwcml2YXRlIGtleSB0aGF0IEkgd2FudCB0byBnZXQgZW5jb2RlZCBpbiBiYXNlIDY0",
|
||||
|
||||
Reference in New Issue
Block a user