<div dir="ltr"><div class="markdown-here-wrapper" id="markdown-here-wrapper-349184" style><p style="margin:1.2em 0px!important">Hi,</p>
<p style="margin:1.2em 0px!important">I do not think sugar labs has a sign on system. You need a different account on the wiki to the bugzilla…</p>
<p style="margin:1.2em 0px!important">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: </p>
<ul style="margin:1.2em 0px;padding-left:2em">
<li style="margin:0.5em 0px">when a page is loaded, run some python code like this:<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline;white-space:pre;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important;display:block;padding:0.5em;color:rgb(51,51,51);background-color:rgb(248,248,255);background-repeat:initial initial"> 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)) 
</code></pre></li>
<li style="margin:0.5em 0px">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.</li>


</ul>
<p style="margin:1.2em 0px!important">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</p>
<p style="margin:1.2em 0px!important">Generally I really like the idea of a no-interaction login system :) People just want help when they go to the forums</p>
<p style="margin:1.2em 0px!important">Sam</p>
<p style="margin:1.2em 0px!important">BTW: We don’t use geko anymore; we use gtkwebkit :)</p>
</div></div>