dlenski / gp-saml-gui

Interactively authenticate to GlobalProtect VPNs that require SAML
GNU General Public License v3.0
293 stars 66 forks source link

AttributeError: 'NoneType' object has no attribute 'get_content_type' #75

Open smidgen opened 1 year ago

smidgen commented 1 year ago

I am using gp-saml-gui to log into a Duo SAML VPN. The authentication succeeds and I can connect to the VPN, but I receive an error during the authentication. I'm not sure what this error does or what it means, because everything seems to be working correctly despite the error.

Here's the standard output in my command line, server name and directory anonymized of course, and gp-saml-gui run with --verbose option:

Looking for SAML auth tags in response to https://vpn.example.com/ssl-vpn/prelogin.esp...
Got SAML POST, opening browser...
[REQUEST] Request for resource about:blank
Traceback (most recent call last):
  File "/path/to/venv-gp-saml-gui/lib/python3.10/site-packages/gp_saml_gui.py", line 127, in on_load_changed
    ct = h.get_content_type()
AttributeError: 'NoneType' object has no attribute 'get_content_type'

I have gp-saml-gui installed in a Python virtual environment. Command line arguments are: --allow-insecure-crypto --clientos=Windows -v --gateway vpn.example.com