Browse Source

HUE-8314 [core] Fix SAML encryption missing config

Ying Chen 7 years ago
parent
commit
52334c9595
1 changed files with 9 additions and 2 deletions
  1. 9 2
      desktop/libs/libsaml/src/libsaml/saml_settings.py

+ 9 - 2
desktop/libs/libsaml/src/libsaml/saml_settings.py

@@ -91,10 +91,17 @@ def config_settings_loader(request):
     # set to 1 to output debugging information
     'debug': 1,
 
-    # certificate
+    # Signing
     'key_file': libsaml.conf.KEY_FILE.get(),
     'key_file_passphrase': libsaml.conf.get_key_file_password(),
-    'cert_file': libsaml.conf.CERT_FILE.get()
+    'cert_file': libsaml.conf.CERT_FILE.get(),
+
+    # Encryption
+    'encryption_keypairs': [{
+      'key_file': libsaml.conf.KEY_FILE.get(),  # private part
+      'key_file_passphrase': libsaml.conf.get_key_file_password(), # TODO: need test because might need implementation
+      'cert_file': libsaml.conf.CERT_FILE.get(),  # public part
+    }],
   })
 
   return conf