开发者

Sinatra with Warden & Omniauth

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 wh开发者_如何学JAVAether 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜