summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-04-19 12:28:54 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-19 12:28:54 +0200
commitfb2f57cfcbb6408130e1cc75bd36c896502b78e0 (patch)
treea8ce43925443d9152e7408edce7adb3307204361 /wrappers
parent1b798f8da29ad90506c6d716858ecb2dd782507f (diff)
OAuth improvements: Also ensure tokens based on config state
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/python/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wrappers/python/main.py b/wrappers/python/main.py
index c2f13ca..d6a568e 100644
--- a/wrappers/python/main.py
+++ b/wrappers/python/main.py
@@ -5,7 +5,7 @@ import webbrowser
_eduvpn = eduvpn.EduVPN("org.eduvpn.app.linux", "configs")
-@_eduvpn.event.on("SERVER_OAUTH_STARTED", eduvpn.StateType.Enter)
+@_eduvpn.event.on("OAuth_Started", eduvpn.StateType.Enter)
def oauth_initialized(url):
print(f"Got OAUTH url {url}")
webbrowser.open(url)