Fix authen and add some rspec for foldersharing