consuming some API from rails and have some auth