开发者

Sinatra with Warden & Omniauth

开发者 https://www.devze.com 2023-04-08 14:42 出处:网络
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.

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

精彩评论

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