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].
This commit is contained in:
		
							parent
							
								
									b3ca520a7a
								
							
						
					
					
						commit
						46b85fa778
					
				
					 1 changed files with 6 additions and 7 deletions
				
			
		|  | @ -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_signing_crt = os.environ.get('SAML2_SIGNING_CRT', None) | ||||||
| saml2_encr_key = os.environ.get('SAML2_ENCRYPTION_KEY', None) | saml2_encr_key = os.environ.get('SAML2_ENCRYPTION_KEY', None) | ||||||
| saml2_encr_crt = os.environ.get('SAML2_ENCRYPTION_CRT', None) | saml2_encr_crt = os.environ.get('SAML2_ENCRYPTION_CRT', None) | ||||||
| saml2_contact = [ | saml2_contact = { | ||||||
|     {'given_name': os.environ.get("META_GIVEN_NAME", 'Bastard'), |     'given_name': os.environ.get("META_GIVEN_NAME", 'Bastard'), | ||||||
|      'sur_name': os.environ.get('META_FAM_NAME', 'Operator'), |     'sur_name': os.environ.get('META_FAM_NAME', 'Operator'), | ||||||
|      'company': os.environ.get('META_COMPANY', 'Corp1'), |     'company': os.environ.get('META_COMPANY', 'Corp1'), | ||||||
|      'email_address': os.environ.get('META_EMAIL', 'op@example.com'), |     'email_address': os.environ.get('META_EMAIL', 'op@example.com'), | ||||||
|      'contact_type': 'technical'}, |     'contact_type': 'technical'}, | ||||||
|     ], |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| if (SECRET_KEY is None or PINAX_STRIPE_PUBLIC_KEY is None or | if (SECRET_KEY is None or PINAX_STRIPE_PUBLIC_KEY is None or | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Sachi King
						Sachi King