From 46b85fa778fc8968d62f2c1e512d73af1b28376d Mon Sep 17 00:00:00 2001
From: Sachi King <nakato@nakato.io>
Date: Sun, 30 Apr 2017 11:38:26 +1000
Subject: [PATCH] settings saml2_contact type is wrong.

We had List[Dict[str, str]], but this was passed without question from
djangosaml2 to pysaml2 no questions asked, which expects Dict[str, str].
---
 pinaxcon/settings.py | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py
index 7a103d8e..19d857b5 100644
--- a/pinaxcon/settings.py
+++ b/pinaxcon/settings.py
@@ -41,13 +41,12 @@ saml2_signing_key = os.environ.get('SAML2_SIGNING_KEY', None)
 saml2_signing_crt = os.environ.get('SAML2_SIGNING_CRT', None)
 saml2_encr_key = os.environ.get('SAML2_ENCRYPTION_KEY', None)
 saml2_encr_crt = os.environ.get('SAML2_ENCRYPTION_CRT', None)
-saml2_contact = [
-    {'given_name': os.environ.get("META_GIVEN_NAME", 'Bastard'),
-     'sur_name': os.environ.get('META_FAM_NAME', 'Operator'),
-     'company': os.environ.get('META_COMPANY', 'Corp1'),
-     'email_address': os.environ.get('META_EMAIL', 'op@example.com'),
-     'contact_type': 'technical'},
-    ],
+saml2_contact = {
+    'given_name': os.environ.get("META_GIVEN_NAME", 'Bastard'),
+    'sur_name': os.environ.get('META_FAM_NAME', 'Operator'),
+    'company': os.environ.get('META_COMPANY', 'Corp1'),
+    'email_address': os.environ.get('META_EMAIL', 'op@example.com'),
+    'contact_type': 'technical'},
 
 
 if (SECRET_KEY is None or PINAX_STRIPE_PUBLIC_KEY is None or