oauth2 sso server building with rails and mysql