vlaci / openconnect-sso

Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication to Cisco SSL-VPNs
GNU General Public License v3.0
280 stars 119 forks source link

Browser display connection fails: WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed. QGLXContext: Failed to create dummy context #61

Open GillesJ opened 2 years ago

GillesJ commented 2 years ago

The opening of the browser window to verify or enter log-in information fails.

What changed: I upgraded all packages including openconnect-sso and deps through pipx and my browsers through apt.

The package still works by manually copy-pasting the url in my browser, but it was nice to have the window open automatically.

~/.local/bin/openconnect-sso -s vpn.domain.my --browser-display-mode shown
[info     ] Authenticating to VPN endpoint [openconnect_sso.app] address=vpn.domain.my name=
[info     ] Response received              [openconnect_sso.authenticator] id=main message=Please complete the authentication process in the AnyConnect Login window. title=Login
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
QGLXContext: Failed to create dummy context
[info     ] Browser started                [webengine] startup_info=StartupInfo(url='https://vpn.domain.my/+CSCOE+/saml/sp/login?tgname=PF-ANYCONNECT&acsamlcap=v2', credentials=None)
[info     ] Loading page                   [webengine] url=vpn.domain.my/+CSCOE+/saml/sp/login?tgname=PF-ANYCONNECT&acsamlcap=v2
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
[warning  ] Connection terminated with browser [openconnect_sso.browser.browser] 
[warning  ] Browser window terminated, exiting [openconnect_sso.app]