kettari/authgoogle — pull request #13 by aitorcarrera (2014-04-15 13:59:44+00:00)
Title: Added cleanUser function

Added cleanUser function in order to work with ACLs in a secure way. Now the username served is diferent for diferent purposes. It is commented in the code below. I0ve just added a function from the plugin API (cleanUser). The rest of the changes are related to un spaces and tabs unused (Atom.io editor eats unsued things by default)

It is working for me, know if you need to add an ACL at user level just select user in the admin->admin ACLs page dropdown and write the user email, then it will find the user replacing the @ for _ and setup your ACL.

When a user request access to a page, the user string is changed from the Google Name to the email replacing the @ for _ so it works like a charm. It only works for logged in users, of course.

Other case is if I want to change user data, by, google.google_id username, this case is managed too.

If you have any questions please let me know.

B/R