Our program is built on Qt 4.8.6 and for login to Twitch we are using WebKit browser included in official Qt 4.8.6 release.
WebKit browser version it seems ~2.2.4.
Now is avaiable Qt 5.7.0 where WebKit browser was replaced with Chromium browser but we do not want to upgrade our program to use Qt 5.x because it has some bugs on Windows computers. So we continue to use Qt 4.8.6.
Authentication in Qt 4.8.6 WebKit browser worked successfully last months, but stopped to work a few days ago.
-
We load in WebKit browser next url:
https://api.twitch.tv/kraken/oauth2/authorize?response_type=token&client_id={app_client_id}&redirect_uri={redirect_url}&scope=user_read+chat_login -
Then we see login form, we fill form with ‘user’ and ‘password’ data, press login and see in browser white page with text:
{“redirect”: “some url here”} -
After a few like attempts to login we see login form with captcha. We fill form with ‘user’ and ‘password’ data and fill captcha, press login and see white page with another text:
{“message”:“Please complete the CAPTCHA correctly.”,“captcha”:“true”,“errors”:[“Please complete the CAPTCHA correctly.”]}
If enter in login form incorrect ‘user’ and ‘password’ data and press login - message is the same.
- Authentication works now successfully in IE11 and FireFox and we receive access_token.
Authentication worked successfully in WebKit last months, we nothing changed in WebKit work last months and weeks, authentication stopped to work in WebKit a few days ago. In my previous post I wrote about a few articles that I found in Google and where said about WebKit bugs.