RubyOnRails implementation of an OAUTH2.0 provider&client using doorkeeper&oauth2