Today, there are few authentication gems such as Twitter ( https://github.com/sferik/sign-in-with-twitter )
Supposing that I have posts table, which has a field named "username". Then I want to insert the value of usernames of their twitter accounts to it.
How can I design the system structure? What gems do I have to use to realize this procedure below?
A person sign in with his twitter account ID "test_john".
After confirmed his sign in to Twitter, my system receive callback then now he has a permission to post to my web service. Let's suppose that he posted a comment "hello".
New comment record will be created, and these values will be inserted to each
comments.username <= test_john
comments.body <= hello
Can I do this without using Devise or OmniAuth or something like these authentication gems? or Do I have to use them anyway if I'm doing this?
What gems do I need at least?
它的此处称为Omniauth是链接https://github.com/intridea/omniauth
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.