From 5b5a3eec0ee24e44e44cfc54d6a53abad546d04f Mon Sep 17 00:00:00 2001 From: yuxabc Date: Thu, 7 Apr 2016 13:51:28 -0400 Subject: [PATCH 1/2] Change release number --- CHANGES | 3 +++ setup.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 7d01532..cedcd6f 100644 --- a/CHANGES +++ b/CHANGES @@ -4,3 +4,6 @@ Changes 0.20.0 (2015-02-12) ------------------- - Initial version based on djangosaml2 supporting multi-tenant + +0.20.1 (2016-04-06) +- Make djangosmal2 tenant support reading metadata from database diff --git a/setup.py b/setup.py index 4c06a7d..423d0fe 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ def read(*rnames): setup( name='djangosaml2_tenant', - version='0.20.0', + version='0.20.1', description='pysaml2 integration for multi-tenant in Django', long_description='\n\n'.join([read('README'), read('CHANGES')]), classifiers=[ From ce71e0924709264255a86510e707004da4033fd0 Mon Sep 17 00:00:00 2001 From: Phil Friesen Date: Thu, 7 Apr 2016 14:22:15 -0400 Subject: [PATCH 2/2] Added documentation to CHANGES. --- CHANGES | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index cedcd6f..0e84f16 100644 --- a/CHANGES +++ b/CHANGES @@ -6,4 +6,13 @@ Changes - Initial version based on djangosaml2 supporting multi-tenant 0.20.1 (2016-04-06) -- Make djangosmal2 tenant support reading metadata from database +- Make djangosaml2 tenant support reading metadata from database by adding the following to settings.py: + SAML_CONFIG.update({ + # Specifying 'inline': 'DB' means SAML metadata comes from the DB via the following method: + # tenant/models/Member.get_saml_metadata(self) + # Implement this method to retrieve the metadata from the table of your choice. + 'metadata': { + 'inline': 'DB', + }, + ... + })