SAML Single Logout (#27995)

* SAML: single logout WIP

* SAML: sign SAML requests

* SAML: remove unnecessary logs

* fix go mod file

* Docs: Single Logout

* SAML: use api endpoint for single logout

* Apply suggestions from code review

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* SAML: save context for single logout

* Chore: add SAML dependencies

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
Alexander Zobnin
2020-10-08 17:42:55 +03:00
committed by GitHub
parent 46a91f2b94
commit b55a51e270
5 changed files with 34 additions and 14 deletions

View File

@ -287,7 +287,8 @@ type Cfg struct {
OAuthCookieMaxAge int
// SAML Auth
SAMLEnabled bool
SAMLEnabled bool
SAMLSingleLogoutEnabled bool
// Dataproxy
SendUserHeader bool
@ -998,6 +999,7 @@ func readAuthSettings(iniFile *ini.File, cfg *Cfg) (err error) {
// SAML auth
cfg.SAMLEnabled = iniFile.Section("auth.saml").Key("enabled").MustBool(false)
cfg.SAMLSingleLogoutEnabled = iniFile.Section("auth.saml").Key("single_logout").MustBool(false)
// anonymous access
AnonymousEnabled = iniFile.Section("auth.anonymous").Key("enabled").MustBool(false)