Implementaion of Oauth2 in rails