开发者

double request from omniauth (devise, custom strategy, oauth2)

I have some oauth provider code, based on one taken from here: http://blog.joshsoftware.com/2010开发者_运维百科/12/16/multiple-applications-with-devise-omniauth-and-single-sign-on/

Then I created my client with omniauth custom strategy + devise (also somehow based on link mentioned earlier).

However I have problem - it seems like my strategy is being called twice, and method auth_hash is called twice, which results in double call being made to access_token_url and user.json.

Any idea why it is called twice and how to prevent it?


The problem is solved - an issue was requiring strategy file twice: first time in omniauth.rb and second time in devise.rb.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜