summaryrefslogtreecommitdiffstats
path: root/ipsilon/providers/saml2idp.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-02-26 18:42:09 -0500
committerSimo Sorce <simo@redhat.com>2014-02-26 21:50:27 -0500
commit2926eb00f40d925549b14b86f73f8649df1e9c05 (patch)
treee750f5cbe339f2aa85257f35805a662a956c0b3f /ipsilon/providers/saml2idp.py
parent87f1f56c157145e81efa6b58ec9b0d7f89facfc0 (diff)
downloadipsilon.git-2926eb00f40d925549b14b86f73f8649df1e9c05.tar.gz
ipsilon.git-2926eb00f40d925549b14b86f73f8649df1e9c05.tar.xz
ipsilon.git-2926eb00f40d925549b14b86f73f8649df1e9c05.zip
Add Service Provider class
This class allows to represent a service provider and its associated policy Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/providers/saml2idp.py')
-rwxr-xr-xipsilon/providers/saml2idp.py18
1 files changed, 18 insertions, 0 deletions
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