Changeset - 46b85fa778fc
[Not reviewed]
0 1 0
Sachi King - 7 years ago 2017-04-30 01:38:26
nakato@nakato.io
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].
1 file changed with 6 insertions and 7 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -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
0 comments (0 inline, 0 general)