summaryrefslogtreecommitdiffstats
path: root/ipsilon/providers/saml2idp.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-03-02 18:09:27 -0500
committerSimo Sorce <simo@redhat.com>2014-03-02 18:13:01 -0500
commitad6e5efc6347639f4edfba94375151ccdbc5f7a8 (patch)
tree91e4140b652cff443ecc55c84887c76f55fc313e /ipsilon/providers/saml2idp.py
parent51f2e1822ce32983c52435185afb5f803d3d150a (diff)
downloadipsilon.git-ad6e5efc6347639f4edfba94375151ccdbc5f7a8.tar.gz
ipsilon.git-ad6e5efc6347639f4edfba94375151ccdbc5f7a8.tar.xz
ipsilon.git-ad6e5efc6347639f4edfba94375151ccdbc5f7a8.zip
Add a way to return the email address of the user
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/providers/saml2idp.py')
-rwxr-xr-xipsilon/providers/saml2idp.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ipsilon/providers/saml2idp.py b/ipsilon/providers/saml2idp.py
index 0fcbe67..9cf3ed6 100755
--- a/ipsilon/providers/saml2idp.py
+++ b/ipsilon/providers/saml2idp.py
@@ -172,6 +172,11 @@ Provides SAML 2.0 authentication infrastructure. """
"""Default NameID used by Service Providers. """,
'string',
'persistent'
+ ],
+ 'default email domain': [
+ """Default email domain, for users missing email property.""",
+ 'string',
+ 'example.com'
]
}
@@ -206,6 +211,10 @@ Provides SAML 2.0 authentication infrastructure. """
def default_nameid(self):
return self.get_config_value('default nameid')
+ @property
+ def default_email_domain(self):
+ return self.get_config_value('default email domain')
+
def get_tree(self, site):
self.page = SAML2(site, self)
return self.page