Hi, I wanted to see why the old style login window was coming up for us when using Toolkit’s ShotgunAuthenticator class. So after doing some digging and debugging in the toolkit code I ended up in “tank.authentication.sso_saml2.core.sso_saml2_core.py” - here it’s throwing an exception on line 154:
raise SsoSaml2MissingQtWebKit(“The QtWebKit module is unavailable”)
This exception is caught and it seems to fall-back to using the old style login. It seems like, if the QtWebKit module was available, it would do exactly what we need and run the correct login process.
Our code is running the python installed with Shotgrid Desktop, here:
“C:\Program Files\Shotgun\Python3\python.exe”
And I can see that the PySide2 module installed under the site_packages is indeed missing the QtWebKit module. I uninstalled Shotgrid Desktop and reinstalled, in case I just needed the very latest version but it’s still missing.
I tried running through a custom python install (with PySide2 and QtWebKit installed) and indeed I got the correct authentication dialog and the exact behaviour we need ! (The authentication works and whats more the login persists just like it does when logging in through SG Desktop).
So I think this exception is the cause of all our woes and can be fixed by ensuring this QtWebKit module is availabl. I’m not sure why it’s not included in the SGD python install.