diff options
author | Rob Crittenden <rcritten@redhat.com> | 2015-04-09 14:59:41 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-04-10 10:41:22 -0400 |
commit | cd0a566562d0279d13c3df08366bc38acf53011a (patch) | |
tree | 4372307d08182ebb56e7d7a49ebed054e55ed6b3 | |
parent | 348fcbcbaf5c686cdb077c9bed53ded95ad04b49 (diff) | |
download | ipsilon-cd0a566562d0279d13c3df08366bc38acf53011a.tar.gz ipsilon-cd0a566562d0279d13c3df08366bc38acf53011a.tar.xz ipsilon-cd0a566562d0279d13c3df08366bc38acf53011a.zip |
Make the authtest login plugin provide more info
Provide more variables to test for in allow attribute and mapping
testing.
Adds givenname (Test User), surname (the username) and
email (username@example.com).
https://fedorahosted.org/ipsilon/ticket/25
Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
-rw-r--r-- | ipsilon/login/authtest.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ipsilon/login/authtest.py b/ipsilon/login/authtest.py index d7a49d8..7fc4160 100644 --- a/ipsilon/login/authtest.py +++ b/ipsilon/login/authtest.py @@ -32,7 +32,12 @@ class TestAuth(LoginFormBase): if username and password: if password == 'ipsilon': cherrypy.log("User %s successfully authenticated." % username) - testdata = {'fullname': 'Test User %s' % username} + testdata = { + 'givenname': 'Test User', + 'surname': username, + 'fullname': 'Test User %s' % username, + 'email': '%s@example.com' % username + } return self.lm.auth_successful(self.trans, username, 'password', testdata) else: |