You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to set a OAuth connexion via Instagram and I found this gem. I successfully plugged it for Facebook, linkedin and Google + but I am currently struggling with Instagram connexion.
The reason is that I get this error when I click on "Authorize" on the Instagram connexion page
ERROR -- omniauth: (instagram) Authentication failure! user_denied: OmniAuth::Strategies::OAuth2::CallbackError, access_denied | The user denied your request.
I hence get redirect to my failure method:
Parameters: {"error_reason"=>"user_denied", "error"=>"access_denied", "error_description"=>"The user denied your request.", "state"=>"d54f932ff4bada3abd784e39886b96d324f753929d410d97"}
Here is how I configured my provider in my devise.rb file :
We've been seeing the shame issue. Shockingly it appears to be an issue when the authorisation screen at Instagram is anything but English. See the following:
Appending the undocumented suffix "&hl=en" to the auth url also works as a fix, as it changes the language to English. Might be useful for non-tech users.
Will report back once we've confirmed it as working! 👍
UPDATE
The solution we've gone with is to set the hl=en in the config.omniauth, e.g:
Hey guys,
I am currently trying to set a OAuth connexion via Instagram and I found this gem. I successfully plugged it for Facebook, linkedin and Google + but I am currently struggling with Instagram connexion.
The reason is that I get this error when I click on "Authorize" on the Instagram connexion page
ERROR -- omniauth: (instagram) Authentication failure! user_denied: OmniAuth::Strategies::OAuth2::CallbackError, access_denied | The user denied your request.
I hence get redirect to my failure method:
Here is how I configured my provider in my
devise.rb
file :Nothing fancy going on here.
Here are the version of the gems that I am using :
I tried looking it up but I couldn't find any related solutions.
Thanks for your feedback
The text was updated successfully, but these errors were encountered: