Goodreads Developers discussion
bugs
>
Broken OAuth on iOS with official Goodreads app installed
date
newest »


I'm in a similar situation with OAuth flow breaking when iOS app is installed. It opens and shows an error message for me.
When looking at Goodreads 'apple-app-site-association' file I noticed that many user flow URLs like '/user/sign_in' or '/user/new' are excluded from getting opened in the app.
I suspect that Goodreads forgot to exclude '/oauth/authorize' in that list.
I don't know if any developers read here, but this looks like an easy fix.
I'm going nuts here as I can't make the OAuth work reliably on iOS.
Here's the flow:
1. I present Safari with goodreads sign-in page
2. I choose to authenticate with Facebook
3. Then instead of getting auth callback, iOS opens Goodreads app that I have installed on my phone. When it's launched, I get stucked on that screen:
https://www.dropbox.com/s/yvjuqhsly9z...
I'm using OAuthSwift lib and my code is pretty much the same as in this example:
https://gist.github.com/Protome/96756...
Any idea how to fix that? :<