[Building Sakai] Developer Helper Service

Stephen Marquard stephen.marquard at uct.ac.za
Wed Sep 17 03:15:31 PDT 2014


You should probably avoid changing the current user’s session to admin at any time, for any reason.

Rather use a SecurityAdvisor to permit the actions which your code does on behalf of the user, and then clear it when done.

Regards
Stephen

---
Stephen Marquard, Learning Technologies Co-ordinator,
Centre for Innovation in Learning and Teaching (CILT)
University of Cape Town
http://www.cilt.uct.ac.za
stephen.marquard at uct.ac.za<mailto:stephen.marquard at uct.ac.za>
Phone: +27-21-650-5037 Cell: +27-83-500-5290

From: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-bounces at collab.sakaiproject.org] On Behalf Of Nguni Phakela
Sent: 17 September 2014 12:09 PM
To: Sakai Developers
Subject: [Building Sakai] Developer Helper Service

Hi,

I am using developer helper service. I am adding users to Sakai and also to a course via courseManagementAdministration.

I am using developerHelperService to become admin, and then I want to 'logout' the admin after by using restoreCurrentUser.

The user sees the login screen, however after successful authentication, they are logged in as admin, not using their account.

Is there a better way to do this, or how do I restore the previous session if there was no one logged in?

Cheers,
--
Nguni Phakela
Cell: 061-131-2053
skype: nguni52
twitter: @nguni52
________________________________
UNIVERSITY OF CAPE TOWN

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140917/7f768dd8/attachment.html 


More information about the sakai-dev mailing list