Package Details: openconnect-sso 0.8.1-1

Git Clone URL: https://aur.archlinux.org/openconnect-sso.git (read-only, click to copy)
Package Base: openconnect-sso
Description: Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication
Upstream URL: https://github.com/vlaci/openconnect-sso
Licenses: GPL3
Submitter: MrAnno
Maintainer: MrAnno
Last Packager: MrAnno
Votes: 20
Popularity: 0.64
First Submitted: 2020-02-17 16:40 (UTC)
Last Updated: 2025-10-05 12:48 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

shaik commented on 2026-04-09 15:29 (UTC) (edited on 2026-04-09 15:30 (UTC) by shaik)

In order to make the package compatible with Python > 3.13, the following lines in app.py:

 try: if os.name == "nt":
    asyncio.set_event_loop(asyncio.ProactorEventLoop())
    auth_response, selected_profile = asyncio.get_event_loop().run_until_complete(_run(args, cfg)) 

should be replaced with:


try:
    if os.name == "nt":
        loop = asyncio.ProactorEventLoop()
        asyncio.set_event_loop(loop)
    else:
        loop = asyncio.new_event_loop()
        asyncio.set_event_loop(loop)

    auth_response, selected_profile = loop.run_until_complete(
        _run(args, cfg)
    )

#keep the rest of the exceptions and add this to the end

finally:
    try:
        loop.close()
    except Exception:
        pass

Burny02 commented on 2026-03-01 08:46 (UTC)

Confirmed that this fork fixes the loop asyncio bug https://github.com/noahvogt/openconnect-sso/tree/fixes-34

999cgm commented on 2026-02-01 08:06 (UTC)

for me I have issues with yubikey auth , I made gist to use playwright module instead of pyQtWeb https://gist.github.com/cgm999/c918dd832d91ed8f8b2d8a572d95bd55

MrAnno commented on 2026-01-27 11:48 (UTC)

@m8t Thanks. Could you contribute this patch back to the https://github.com/PrestonHager/openconnect-sso fork, please?

tmrd commented on 2026-01-27 08:43 (UTC)

Confirmed here too; I have the same event loop error that you've spotted m8t. Your patch is a good workaround.

m8t commented on 2026-01-13 16:56 (UTC)

--- /usr/lib/python3.14/site-packages/openconnect_sso/app.py    2026-01-13 17:47:40.465694399 +0100
+++ /tmp/fix.py 2026-01-13 17:48:45.663104571 +0100
@@ -32,7 +32,9 @@
     try:
         if os.name == "nt":
             asyncio.set_event_loop(asyncio.ProactorEventLoop())
-        auth_response, selected_profile = asyncio.get_event_loop().run_until_complete(
+        loop = asyncio.new_event_loop()
+        asyncio.set_event_loop(loop)
+        auth_response, selected_profile = loop.run_until_complete(
             _run(args, cfg)
         )
     except KeyboardInterrupt:

This patch worked for me.

In fact there is a mention on python-asyncio about this change in Python 3.14:

https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop

Changed in version 3.14: Raises a RuntimeError if there is no current event loop.

awilli commented on 2025-10-09 06:21 (UTC)

Works for me. Thanks