Alright. Weâve successfully fixed ours. I donât know if this is totally related with the others issues. Weâve recently changed from http to https (SSL stuff) and it was when this first happened to us. Weâve checked our code now throughly and we found out in our callback weâre doing this
redirect_to request.env[âHTTP_REFERERâ] || env[âomniauth.originâ] || root_url (ruby and using omniauth-twitter https://github.com/arunagw/omniauth-twitter)
We removed request.env[âHTTP_REFERERâ] and it worked perfectly now. I think it is right that we really shouldnât have had HTTP_REFERER there but it is weird that when on http-version HTTP_REFERER doesnât have a value and when on https-version it does have a value. Also, on https-version some of us can log in and some really canât. So I think that HTTP_REFERER sometimes has a value and sometimes donât. Different behaviors, which is a bit weird.
Would you happen to know why @episod?
I donât know if thisâll help anyone but itâs still worth checking.