MM-14712 - Add support for signing SAML requests (#11081)
* SAML Request signing added * added telemetry for signrequest flag
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
599dcb0f77
Коммит
c243b6640c
@@ -499,6 +499,7 @@ func (a *App) trackConfig() {
|
|||||||
"enable_sync_with_ldap_include_auth": *cfg.SamlSettings.EnableSyncWithLdapIncludeAuth,
|
"enable_sync_with_ldap_include_auth": *cfg.SamlSettings.EnableSyncWithLdapIncludeAuth,
|
||||||
"verify": *cfg.SamlSettings.Verify,
|
"verify": *cfg.SamlSettings.Verify,
|
||||||
"encrypt": *cfg.SamlSettings.Encrypt,
|
"encrypt": *cfg.SamlSettings.Encrypt,
|
||||||
|
"sign_request": *cfg.SamlSettings.SignRequest,
|
||||||
"isdefault_scoping_idp_provider_id": isDefault(*cfg.SamlSettings.ScopingIDPProviderId, ""),
|
"isdefault_scoping_idp_provider_id": isDefault(*cfg.SamlSettings.ScopingIDPProviderId, ""),
|
||||||
"isdefault_scoping_idp_name": isDefault(*cfg.SamlSettings.ScopingIDPName, ""),
|
"isdefault_scoping_idp_name": isDefault(*cfg.SamlSettings.ScopingIDPName, ""),
|
||||||
"isdefault_id_attribute": isDefault(*cfg.SamlSettings.IdAttribute, model.SAML_SETTINGS_DEFAULT_ID_ATTRIBUTE),
|
"isdefault_id_attribute": isDefault(*cfg.SamlSettings.IdAttribute, model.SAML_SETTINGS_DEFAULT_ID_ATTRIBUTE),
|
||||||
|
|||||||
@@ -1855,8 +1855,9 @@ type SamlSettings struct {
|
|||||||
EnableSyncWithLdap *bool
|
EnableSyncWithLdap *bool
|
||||||
EnableSyncWithLdapIncludeAuth *bool
|
EnableSyncWithLdapIncludeAuth *bool
|
||||||
|
|
||||||
Verify *bool
|
Verify *bool
|
||||||
Encrypt *bool
|
Encrypt *bool
|
||||||
|
SignRequest *bool
|
||||||
|
|
||||||
IdpUrl *string
|
IdpUrl *string
|
||||||
IdpDescriptorUrl *string
|
IdpDescriptorUrl *string
|
||||||
@@ -1907,6 +1908,10 @@ func (s *SamlSettings) SetDefaults() {
|
|||||||
s.Encrypt = NewBool(true)
|
s.Encrypt = NewBool(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.SignRequest == nil {
|
||||||
|
s.SignRequest = NewBool(false)
|
||||||
|
}
|
||||||
|
|
||||||
if s.IdpUrl == nil {
|
if s.IdpUrl == nil {
|
||||||
s.IdpUrl = NewString("")
|
s.IdpUrl = NewString("")
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user