Need some high level advice before putting the pieces of an app together..

I'm not entirely sure how these three pieces should fit together.

My understanding:

I have the user log in using omniauth and get redirected to a callback, where I can get information provided by the API and use it to build a user in the database. Then, I use warden to "store" the user, and authenticate whether actions are valid or not.

  • It looks as if I'll have to create my own "strategy" for warden?

  • How should I store the user's identity?

有帮助吗?

解决方案

Somebody's already done the hard work for you. On github: https://github.com/hassox/warden_omniauth

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top