X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=auth%2Fmanifoldbackend.py;h=54b16e72ee41ae08d92ad382d246d69ff121744e;hb=b490e035bac3b74b66130548f5a4bf4a30ad8375;hp=da3c23f93b545dee7e6b6d2e087ae67749148ecd;hpb=bbdf40b4dd1bebc81461f1c9294aca95323bf889;p=myslice.git diff --git a/auth/manifoldbackend.py b/auth/manifoldbackend.py index da3c23f9..54b16e72 100644 --- a/auth/manifoldbackend.py +++ b/auth/manifoldbackend.py @@ -27,19 +27,19 @@ class ManifoldBackend: if not session : return None - request.session['manifold_session'] = session #self.session = session # Change GetSession() at some point to return expires as well expires = time.time() + (24 * 60 * 60) # Change to session authentication api.auth = {'AuthMethod': 'session', 'session': session} - #self.api = api + self.api = api # Get account details person = api.GetPersons(auth)[0] - request.session['manifold_person'] = person - #self.person = person[0] + self.person = person + + request.session['manifold'] = {'auth': api.auth, 'person': person, 'expires': expires} except: return None