diff options
author | Simo Sorce <simo@redhat.com> | 2014-02-26 18:42:09 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-02-26 21:50:27 -0500 |
commit | 2926eb00f40d925549b14b86f73f8649df1e9c05 (patch) | |
tree | e750f5cbe339f2aa85257f35805a662a956c0b3f /ipsilon/providers/saml2idp.py | |
parent | 87f1f56c157145e81efa6b58ec9b0d7f89facfc0 (diff) | |
download | ipsilon.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-x | ipsilon/providers/saml2idp.py | 18 |
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 |