Devise omniauthable breaks Omniauth authentication with `Could not find a valid mapping for path`

后端 未结 2 1460
我寻月下人不归
我寻月下人不归 2021-01-14 11:02

In my project, I have two type of users: job seekers and hiring managers. Job seekers don\'t have a model, they are just able to apply for jobs using the data received from

2条回答
  •  天命终不由人
    2021-01-14 11:20

    Are you using omniauth["user_info"] in your models somewhere? In my case, I was accessing

    omniauth["user_info"]["email"] 
    

    and that would crash and I would get the same error, being caught by devise.

    In my app as well, we use omniauth directly (for businesses) as well as use device+facebook for user logins.

    Havent yet figured out to not get failure caught by devise though. Devise registers it's own failure app. Will update when i figure it out.

    Update: I'm sorry it seems I misread part of your question. You can see a clear failure to authorize from the remote webapp which seems to stuff up and not a masked exception from the code (as was in my case).

提交回复
热议问题