edit function scopes (allow keywords like "all" and "foo" (where the scope is foo-bar)
add the method authenticate which authenticate an user from its uid