Back
OAuth::Unauthorized 403 Forbidden self.token_request(http_method, uri.path, token, request_options, arguments) when (400..499) raise OAuth::Unauthorized, response else response.error! end
rails + devise Twitter 認証を行っていたらこちらのエラーが発生
OAuth::Unauthorized
403 Forbidden
self.token_request(http_method, uri.path, token, request_options, arguments)
when (400..499)
raise OAuth::Unauthorized, response
else
response.error!
end
私の解決方法は、twitterのAPI設定ページでwww
を外すことで解決しました!
# ダメ
https://www.domain.com/users/auth/twitter/callback
# いけた
https://domain.com/users/auth/twitter/callback