From 2926eb00f40d925549b14b86f73f8649df1e9c05 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 26 Feb 2014 18:42:09 -0500 Subject: Add Service Provider class This class allows to represent a service provider and its associated policy Signed-off-by: Simo Sorce --- ipsilon/providers/saml2idp.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'ipsilon/providers/saml2idp.py') diff --git a/ipsilon/providers/saml2idp.py b/ipsilon/providers/saml2idp.py index a22a1f4..3dda9e8 100755 --- a/ipsilon/providers/saml2idp.py +++ b/ipsilon/providers/saml2idp.py @@ -162,6 +162,16 @@ Provides SAML 2.0 authentication infrastructure. """ """ Allow authenticated users to register applications. """, 'boolean', True + ], + 'default allowed nameids': [ + """Default Allowed NameIDs for Service Providers. """, + 'list', + ['transient', 'email', 'kerberos', 'x509'] + ], + 'default nameid': [ + """Default NameID used by Service Providers. """, + 'string', + 'email' ] } @@ -188,6 +198,14 @@ Provides SAML 2.0 authentication infrastructure. """ return os.path.join(self.idp_storage_path, self.get_config_value('idp key file')) + @property + def default_allowed_nameids(self): + return self.get_config_value('default allowed nameids') + + @property + def default_nameid(self): + return self.get_config_value('default nameid') + def get_tree(self, site): self.page = SAML2(site, self) return self.page -- cgit