[Sugar-devel] Regarding the social help project

Sam Parkinson sam.parkinson3 at gmail.com
Sat Mar 15 17:13:14 EDT 2014


Hi,

I do not think sugar labs has a sign on system. You need a different
account on the wiki to the bugzilla...

I was thinking of a different of system so users didn't need to log in if
they didn't want to. This would work by:

   - when a page is loaded, run some python code like this:

    user_id = str(hashlib.md5().update(someUniqueUserId).update(domainName).hex())
    # Do a hash so it is unique across sites for privacy reasons
    user_nick = getSugarUserNick()
    user_colors = (getXOColor().fill, getXOColor.stroke)
    # Insert those into the js namespace
    webview.run_js("""navigator.id.sugar = {
       'id': '%s', 'nick': '%s', 'color': %s }
       """ % (user_id, user_nick, str(user_colors))

   - Then hack the forum to send that data in a post request via jquery or
   something. The back end could then use that to automatically create an
   account if needed and sign in the user. A SSO provider could probably be
   used here, but the hard part would be finding the URL to send the request.

Or it could be a sso provider that is hosted at 'sugar-id://social-help'.
This could actually be intercepted by the webview and would return stuff
similar to mentioned above

Generally I really like the idea of a no-interaction login system :) People
just want help when they go to the forums

Sam

BTW: We don't use geko anymore; we use gtkwebkit :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140316/b995670e/attachment.html>


More information about the Sugar-devel mailing list