PLT-6444 switching SAML props to default true (#6330)

Этот коммит содержится в:
Corey Hulen
2017-05-04 11:11:28 -07:00
коммит произвёл Christopher Speller
родитель 152bc14fcb
Коммит 4f074fed0d
4 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@@ -221,8 +221,8 @@
}, },
"SamlSettings": { "SamlSettings": {
"Enable": false, "Enable": false,
"Verify": false, "Verify": true,
"Encrypt": false, "Encrypt": true,
"IdpUrl": "", "IdpUrl": "",
"IdpDescriptorUrl": "", "IdpDescriptorUrl": "",
"AssertionConsumerServiceURL": "", "AssertionConsumerServiceURL": "",

Просмотреть файл

@@ -1002,12 +1002,12 @@ func (o *Config) SetDefaults() {
if o.SamlSettings.Verify == nil { if o.SamlSettings.Verify == nil {
o.SamlSettings.Verify = new(bool) o.SamlSettings.Verify = new(bool)
*o.SamlSettings.Verify = false *o.SamlSettings.Verify = true
} }
if o.SamlSettings.Encrypt == nil { if o.SamlSettings.Encrypt == nil {
o.SamlSettings.Encrypt = new(bool) o.SamlSettings.Encrypt = new(bool)
*o.SamlSettings.Encrypt = false *o.SamlSettings.Encrypt = true
} }
if o.SamlSettings.IdpUrl == nil { if o.SamlSettings.IdpUrl == nil {

Просмотреть файл

@@ -368,7 +368,7 @@ export default class SamlSettings extends AdminSettings {
helpText={ helpText={
<FormattedMessage <FormattedMessage
id='admin.saml.verifyDescription' id='admin.saml.verifyDescription'
defaultMessage='When true, Mattermost verifies that the signature sent from the SAML Response matches the Service Provider Login URL' defaultMessage='When false, Mattermost will not verify that the signature sent from a SAML Response matches the Service Provider Login URL. Not recommended for production environments. For testing only.'
/> />
} }
value={this.state.verify} value={this.state.verify}
@@ -405,7 +405,7 @@ export default class SamlSettings extends AdminSettings {
helpText={ helpText={
<FormattedMessage <FormattedMessage
id='admin.saml.encryptDescription' id='admin.saml.encryptDescription'
defaultMessage='When true, Mattermost will decrypt SAML Assertions encrypted with your Service Provider Public Certificate.' defaultMessage='When false, Mattermost will not decrypt SAML Assertions encrypted with your Service Provider Public Certificate. Not recommended for production environments. For testing only.'
/> />
} }
value={this.state.encrypt} value={this.state.encrypt}

Просмотреть файл

@@ -628,7 +628,7 @@
"admin.saml.emailAttrTitle": "Email Attribute:", "admin.saml.emailAttrTitle": "Email Attribute:",
"admin.saml.enableDescription": "When true, Mattermost allows login using SAML. Please see <a href='http://docs.mattermost.com/deployment/sso-saml.html' target='_blank'>documentation</a> to learn more about configuring SAML for Mattermost.", "admin.saml.enableDescription": "When true, Mattermost allows login using SAML. Please see <a href='http://docs.mattermost.com/deployment/sso-saml.html' target='_blank'>documentation</a> to learn more about configuring SAML for Mattermost.",
"admin.saml.enableTitle": "Enable Login With SAML:", "admin.saml.enableTitle": "Enable Login With SAML:",
"admin.saml.encryptDescription": "When true, Mattermost will decrypt SAML Assertions encrypted with your Service Provider Public Certificate.", "admin.saml.encryptDescription": "When false, Mattermost will not decrypt SAML Assertions encrypted with your Service Provider Public Certificate. Not recommended for production environments. For testing only.",
"admin.saml.encryptTitle": "Enable Encryption:", "admin.saml.encryptTitle": "Enable Encryption:",
"admin.saml.firstnameAttrDesc": "(Optional) The attribute in the SAML Assertion that will be used to populate the first name of users in Mattermost.", "admin.saml.firstnameAttrDesc": "(Optional) The attribute in the SAML Assertion that will be used to populate the first name of users in Mattermost.",
"admin.saml.firstnameAttrEx": "E.g.: \"FirstName\"", "admin.saml.firstnameAttrEx": "E.g.: \"FirstName\"",
@@ -673,7 +673,7 @@
"admin.saml.usernameAttrDesc": "The attribute in the SAML Assertion that will be used to populate the username field in Mattermost.", "admin.saml.usernameAttrDesc": "The attribute in the SAML Assertion that will be used to populate the username field in Mattermost.",
"admin.saml.usernameAttrEx": "E.g.: \"Username\"", "admin.saml.usernameAttrEx": "E.g.: \"Username\"",
"admin.saml.usernameAttrTitle": "Username Attribute:", "admin.saml.usernameAttrTitle": "Username Attribute:",
"admin.saml.verifyDescription": "When true, Mattermost verifies that the signature sent from the SAML Response matches the Service Provider Login URL", "admin.saml.verifyDescription": "When false, Mattermost will not verify that the signature sent from a SAML Response matches the Service Provider Login URL. Not recommended for production environments. For testing only.",
"admin.saml.verifyTitle": "Verify Signature:", "admin.saml.verifyTitle": "Verify Signature:",
"admin.save": "Save", "admin.save": "Save",
"admin.saving": "Saving Config...", "admin.saving": "Saving Config...",