I am trying to write a sign-in-with-twitter app in Go.
I have set the oauth_callback URL parameter in the headers, and I can successfully get the request token (oauth_callback_confirmed = true). Tests also indicate that I am signing / creating the Authorization header properly. My application settings also has a Callback URL specified.
However, after I redirect to oauth/authenticate/ and accept, I get the “Redirecting you back to your application” screen, I end up at a 404: Sorry, that page doesn’t exist!
The URL looks like https://api.twitter.com/oauth/http%3A%2F%2F[..my.domain.org..]%2Ftwitteroauth?oauth_token=[..token..]&oauth_verifier=[..verifier..]
My HTTP server never gets any request. If I use “oob” as the callback then I can successfully get the PIN screen.
What am I doing wrong that the callback url isn’t actually redirected to? It would be an immense help, I’ve been struggling with this for a while