[Interest] Qt Network Authorization example redirect URI
Tom Isaacson
Tom.Isaacson at navico.com
Sun May 27 02:21:26 CEST 2018
I've installed Qt 5.10.1 and I'm trying to get the Reddit example for Qt Network Authorization to work:
https://doc.qt.io/archives/qt-5.10/qtnetworkauth-redditclient-example.html
The instructions tell you to go to https://www.reddit.com/prefs/apps and get a consumer key. I created an app called QtNetworkAuthProject and set the redirect URI to http://localhost:8080/cb as suggested here:
http://blog.qt.io/blog/2017/01/25/connecting-qt-application-google-services-using-oauth-2-0/
But when I run the app Reddit says "invalid redirect_uri parameter". Apparently this can also be because the redirect URI is wrong:
https://stackoverflow.com/questions/18472733/invalid-redirect-uri-parameter-for-reddit-api
This answer suggests the blog post is out of date and it should be http://localhost:8080/ but that fails as well:
https://stackoverflow.com/a/48498861/264822
Does anyone know what the correct setting is? Also, someone should really update the example to explain this better!
Thanks.
Tom Isaacson
More information about the Interest
mailing list