From cd0a566562d0279d13c3df08366bc38acf53011a Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 9 Apr 2015 14:59:41 -0400 Subject: 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 Reviewed-by: Simo Sorce --- ipsilon/login/authtest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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: -- cgit