Need help finding a problem with my OAuth flow
-
Hello,
It seems like a recent bugfix (QTBUG-124333, released in 6.7.2) broke my OAuth flow, which otherwise works correctly with Qt 6.7.1.
In essence, my
QOAuth2AuthorizationCodeFlow::grant()
opens the browser and authenticates me just fine -- I can see the "Feel free to close this window" message, and theauthorizationCallbackReceived
signal triggers, but noithergranted
norerror
ones. There's nothing in the logs.I thought of opening a QTBUG for it, but first wanted to ask for your opinion about my code -- maybe you can see something obviously wrong there? https://github.com/flowkeeper-org/fk-desktop/blob/main/src/fk/qt/oauth.py
Also, if you happen to have an OAuth grant example which works correctly with Qt 6.7.2, I would appreciate a code snippet.
Thanks!
Edit: I also tried creating a new
QOAuthHttpServerReplyHandler
instance, call.listen()
and.close()
explicitly, but this didn't change anything, i.e. it still works with 6.7.1, and still fails with 6.7.2.