简体   繁体   中英

How do I keep user logged in securely after retrieving their details via Facebook (RoR)

I am planning of using facebook to obtain user information for my web app. I am developing it using Ruby On Rails. Is there a way of keeping my user logged in securely via cookies. Does Rails provide an easy way of doing this?

具体来说,如果您利用devise gem,并按照以下说明进行操作 ,那么在设置了Facebook API密钥和机密后,应该会很快启动并运行。

看一下Devise gem: https : //github.com/plataformatec/devise

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM