Allowing Curl API access to Rails web app with OmniAuth

橙三吉。 提交于 2019-12-10 10:27:35

问题


I'm building a Rails web app. I use OmniAuth for authentication.

I would like to provide API access but only after the user has authenticated themselves with OAuth (via twitter mainly).

Any suggestions of where to start?

EDIT: add more context as requested

Not trying to become an Oauth provider, but simply use the same login tokens. For example, you log into my app through twitter. You have both the token and secret OAuth tokens. I want to use those tokens to allow a user API access to the site.

I have a similar question: Retrieving OAuth tokens (on server) from Faraday OAuth module (from client)

来源:https://stackoverflow.com/questions/4697161/allowing-curl-api-access-to-rails-web-app-with-omniauth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!