5
votes

I am having troubles with my server-side login flow to Instagram. I am using:

  • passport.js (passport-instagram) in my Node.js server, at the domain example.com
  • A simple WebView in my android client.

The issue is that sometimes after typing the credentials the client is not redirected to the callback url.

These are the URLs as seen from the client when everything is working:

These are the URLs as seen from the client when the flow is not working:

As you can see, at the end of the login, instead of being redirected to my server, I end up in https://www.instagram.com/ (successfully logged in, by the way).

Why is this happening?

I have no idea myself. Everything seems properly encoded. Might be some Android WebView setting that has to be tweaked (but the same WebView works great with authenticating with other auth providers), might be some passport.js configuration error (but I am using it successfully for all other providers), ...

1

1 Answers

2
votes

having the same issue on my end and have replicated it on other live apps that use Instagram connect.

I've filed a bug report with Instagram but their developer support is quite minimal and I'm not sure if I'll hear back.

That said, I have to assume this is impacting a number of apps and not just ours so hopefully they are working on a fix.