Auth: Add missing Name property to SAML strategy (#94565)

Add Name to SAML strategy
This commit is contained in:
Misi
2024-10-11 08:45:36 +02:00
committed by GitHub
parent f8748f0724
commit 4eab10eaa1
2 changed files with 5 additions and 2 deletions

View File

@@ -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),

View File

@@ -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",